From: Luigi Rizzo Date: Sat, 17 Nov 2007 10:26:21 +0000 (+0000) Subject: some version of flex produce code that wants __STDC_VERSION__ X-Git-Tag: 1.6.0-beta1~3^2~812 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=813fe778016f416259fe0343091866d7e1d51982;p=thirdparty%2Fasterisk.git some version of flex produce code that wants __STDC_VERSION__ 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 --- diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index 819ac46759..5d97f4915f 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -20,6 +20,11 @@ #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 #endif