some version of flex produce code that wants __STDC_VERSION__
authorLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 10:26:21 +0000 (10:26 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 10:26:21 +0000 (10:26 +0000)
defined, but the compiler does not always define it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89370 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/compat.h

index 819ac46..5d97f49 100644 (file)
 #ifndef _COMPAT_H
 #define _COMPAT_H
 
+#ifndef __STDC_VERSION__
+/* flex output wants to find this defined. */
+#define        __STDC_VERSION__ 0
+#endif
+
 #ifdef HAVE_INTTYPES_H
 #include <inttypes.h>
 #endif