diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-22 07:20:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-22 07:20:27 +0000 |
commit | b4219afa515400c5b8ef4b0f5bab9e40fa3243cc (patch) | |
tree | c5177830620b15160aadff5b319d6343204460f9 | |
parent | ff8da7fb9d40af174f79ce39f6b93b4bc8fdd7c9 (diff) | |
download | wireshark-b4219afa515400c5b8ef4b0f5bab9e40fa3243cc.tar.gz wireshark-b4219afa515400c5b8ef4b0f5bab9e40fa3243cc.tar.bz2 wireshark-b4219afa515400c5b8ef4b0f5bab9e40fa3243cc.zip |
Generated Bison and Flex files test whether __STDC__ is defined
in order to check whether to use ANSI C features such as "const".
GCC defines it as 1 even if extensions that render the implementation
non-conformant are enabled; Sun's C compiler (and, I think, other
AT&T-derived C compilers) define it as 0 if extensions that render
the implementation non-conformant are enabled; Microsoft Visual C++
6.0 doesn't define it at all if extensions that render the implementation
non-conformant are enabled.
We define it as 0 in "config.h.win32", so that those generated files will use
those features (and thus not get type warnings when compiled with
MSVC++).
svn path=/trunk/; revision=2698
-rw-r--r-- | config.h.win32 | 19 | ||||
-rw-r--r-- | epan/config.h.win32 | 19 | ||||
-rw-r--r-- | wiretap/config.h.win32 | 21 |
3 files changed, 57 insertions, 2 deletions
diff --git a/config.h.win32 b/config.h.win32 index dd2ae57e93..4f98e5e10d 100644 --- a/config.h.win32 +++ b/config.h.win32 @@ -1,8 +1,25 @@ -/* $Id: config.h.win32,v 1.21 2000/11/20 17:10:24 gram Exp $ */ +/* $Id: config.h.win32,v 1.22 2000/11/22 07:20:22 guy Exp $ */ /* config.h.win32 Generated manually. :-) */ /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ +/* Generated Bison and Flex files test whether __STDC__ is defined + in order to check whether to use ANSI C features such as "const". + + GCC defines it as 1 even if extensions that render the implementation + non-conformant are enabled; Sun's C compiler (and, I think, other + AT&T-derived C compilers) define it as 0 if extensions that render + the implementation non-conformant are enabled; Microsoft Visual C++ + 6.0 doesn't define it at all if extensions that render the implementation + non-conformant are enabled. + + We define it as 0 here, so that those generated files will use + those features (and thus not get type warnings when compiled with + MSVC++). */ +#ifndef __STDC__ +#define __STDC__ 0 +#endif + /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 diff --git a/epan/config.h.win32 b/epan/config.h.win32 index ca35f562bd..09483f0eca 100644 --- a/epan/config.h.win32 +++ b/epan/config.h.win32 @@ -1,8 +1,25 @@ -/* $Id: config.h.win32,v 1.2 2000/10/18 09:34:10 guy Exp $ */ +/* $Id: config.h.win32,v 1.3 2000/11/22 07:20:26 guy Exp $ */ /* config.h.win32 Generated manually. :-) */ /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ +/* Generated Bison and Flex files test whether __STDC__ is defined + in order to check whether to use ANSI C features such as "const". + + GCC defines it as 1 even if extensions that render the implementation + non-conformant are enabled; Sun's C compiler (and, I think, other + AT&T-derived C compilers) define it as 0 if extensions that render + the implementation non-conformant are enabled; Microsoft Visual C++ + 6.0 doesn't define it at all if extensions that render the implementation + non-conformant are enabled. + + We define it as 0 here, so that those generated files will use + those features (and thus not get type warnings when compiled with + MSVC++). */ +#ifndef __STDC__ +#define __STDC__ 0 +#endif + /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 diff --git a/wiretap/config.h.win32 b/wiretap/config.h.win32 index f2ba12e4f3..d338c13d37 100644 --- a/wiretap/config.h.win32 +++ b/wiretap/config.h.win32 @@ -1,3 +1,24 @@ +/* $Id: config.h.win32,v 1.6 2000/11/22 07:20:27 guy Exp $ */ +/* config.h.win32 Generated manually. :-) */ +/* config.h. Generated automatically by configure. */ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + +/* Generated Bison and Flex files test whether __STDC__ is defined + in order to check whether to use ANSI C features such as "const". + + GCC defines it as 1 even if extensions that render the implementation + non-conformant are enabled; Sun's C compiler (and, I think, other + AT&T-derived C compilers) define it as 0 if extensions that render + the implementation non-conformant are enabled; Microsoft Visual C++ + 6.0 doesn't define it at all if extensions that render the implementation + non-conformant are enabled. + + We define it as 0 here, so that those generated files will use + those features (and thus not get type warnings when compiled with + MSVC++). */ +#ifndef __STDC__ +#define __STDC__ 0 +#endif /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 |