Some way for an application to detect -traditional?

Andreas Jaeger aj@oss.sgi.com
Fri Apr 14 11:52:00 GMT 2000


> Is there some way for an application to detect if -traditional
> was used on the command line? glibc2.1 no longer supports 
> -traditional, and it is the path of least resistance to get 
> glibc2.1 header files to detect that and emit a clear error
> instead of many confusing ones.


glibc 2.2 will have in <sys/cdefs.h>:

/* The GNU libc does not support any K&R compilers or the traditional mode
   of ISO C compilers anymore.  Check for some of the combinations not
   anymore supported.  */
#if defined __GNUC__ && !defined __STDC__
# error "You need a ISO C conforming compiler to use the glibc headers"
#endif

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de
    currently: aj@oss.sgi.com


More information about the Gcc mailing list