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>
This commit is contained in:
parent
a31e9fd24c
commit
1f8cea2d13
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
#define OPUS_TYPES_H
|
#define OPUS_TYPES_H
|
||||||
|
|
||||||
/* Use the real stdint.h if it's there (taken from Paul Hsieh's pstdint.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>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef int16_t opus_int16;
|
typedef int16_t opus_int16;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue