www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/09/05:52:10

Date: Tue, 08 Nov 1994 23:14:46 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: predefines in lib/specs
To: soeren AT xilinx DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>Why does lib/specs have the following defines:
>
>lib/specs:
>	*predefines: -Dunix -Di386 -DGO32 -DMSDOS

To minimize GCC's hardwiring.

>and why are these defines turned off when compiling with the "-ansi"
>flag?

Strict ANSI C is _very_ pedantic about the program's name space--after all,
you might have a function i386() which would collide with the macro i386.
Admittedly, this is an absurd example, but you get the idea.  However, 
__GO32__ et al. are still defined.

--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp!
-=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=-
Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: 
 GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) 
 E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) 
 b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019