Ethereal-dev: Re: [Ethereal-dev] Use of C99 code in 0.10.8

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 29 Dec 2004 14:40:30 -0800
LEGO wrote:
Is it possible to get gcc to actually fail with non ANSI C code?

There's the -ansi flag.  However, as the GCC man page says:

   The macro "__STRICT_ANSI__" is predefined when the -ansi option is
   used.  Some header files may notice this macro and refrain from
   declaring certain functions or defining certain macros that the ISO
   standard doesn't call for; this is to avoid interfering with any
   programs that might use these names for other things.

That *might*, on some platforms, cause functions that Ethereal requires not to be declared or cause macros that Ethereal requires not to be defined. I don't remember whether we've ever tried compiling with -ansi. I'll see what happens if I try that on OS X 10.3.7, at least - some other OSes might use __STRICT_ANSI__ in ways that OS X doesn't, so even if it works on OS X it might not work on other platforms.