Tomas Lindquist Olsen, el 15 de abril a las 01:45 me escribiste: > On Tue, Apr 14, 2009 at 11:51 PM, Walter Bright > <newshou...@digitalmars.com> wrote: > > Tomas Lindquist Olsen wrote: > >> > >> On Tue, Apr 14, 2009 at 9:49 PM, Walter Bright > >> <newshou...@digitalmars.com> wrote: > >>> > >>> Tomas Lindquist Olsen wrote: > >>>> > >>>> And if not, why is there no Linux ? This is the obvious reason for > >>>> GDC/LDC pick the lowercase identifiers in the first place ... > >>> > >>> Because gcc on linux predefines "linux", not "Linux". > >>> > >> > >> It seems somewhat arbitrary, but fair enough.. > > > > It's just one less thing to remember when switching between C and D. > > > > After reading more, I just can't help but feel this is wrong. > > linux is still the only version identifier following this "logic". > > Comparing http://predef.sourceforge.net/preos.html and D: > > linux -> linux
This is only true when no -std=xxx (where xxx is an standard version withou GCC extensions) is specified. __linux__ (or __linux) is always defined. -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ----------------------------------------------------------------------------