Fix warnings with Cerbero's mingw (gcc 4.7)
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 5 Feb 2019 13:29:11 +0000 (18:59 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 5 Feb 2019 13:29:11 +0000 (18:59 +0530)
orcutils.h:59:38: error: "__STDC_VERSION__" is not defined [-Werror=undef]

orc/orcutils.h

index dd73ea5..dc13cd0 100644 (file)
@@ -56,7 +56,7 @@ typedef enum {
 
 #ifndef _ORC_INTEGER_TYPEDEFS_
 #define _ORC_INTEGER_TYPEDEFS_
-#if defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L
+#if defined(__STDC__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #include <stdint.h>
 typedef int8_t orc_int8;
 typedef int16_t orc_int16;