Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Alberto Lopez Perez <clopez@igalia.com>2017-04-11 02:07:35 +0300
committerRalph Giles <giles@thaumas.net>2017-05-02 00:37:57 +0300
commit1f8cea2d13b21e55518e55c15ec6bd9510164696 (patch)
tree87ac1b9646c715de3024573475b04413297cc1dc /include
parenta31e9fd24cd501d90dfdba1192a6dd6cb46ab2aa (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/opus_types.h2
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;