diff options
author | Carlos Alberto Lopez Perez <clopez@igalia.com> | 2017-04-11 01:07:35 +0200 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2017-05-01 14:37:57 -0700 |
commit | 1f8cea2d13b21e55518e55c15ec6bd9510164696 (patch) | |
tree | 87ac1b9646c715de3024573475b04413297cc1dc | |
parent | a31e9fd24cd501d90dfdba1192a6dd6cb46ab2aa (diff) | |
download | libopus-1f8cea2d13b21e55518e55c15ec6bd9510164696.tar.gz |
Avoid warning when __STDC_VERSION__ is not defined
This fixes an issue with gcc 4.9 on Debian 8, at least,
which defines __STDC__ but not __STDC_VERSION__, unlike
more recent gcc.
Signed-off-by: Ralph Giles <giles@thaumas.net>
-rw-r--r-- | include/opus_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/opus_types.h b/include/opus_types.h index b28e03ae..71808266 100644 --- a/include/opus_types.h +++ b/include/opus_types.h @@ -34,7 +34,7 @@ #define OPUS_TYPES_H /* Use the real stdint.h if it's there (taken from Paul Hsieh's pstdint.h) */ -#if (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H)) +#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H)) #include <stdint.h> typedef int16_t opus_int16; |