Predefined Version Identifier on Linux

Walter Bright newshound1 at digitalmars.com
Wed Mar 28 11:43:29 PDT 2007


Shan-yung Yang wrote:
> Walter Bright Wrote:
> 
>> Shan-yung Yang wrote:
>>> I wonder why the first letter of predefined identifier "linux" is not uppercased. This looks inconsistent with other uppercased identifiers and makes users confused.
>>
>> It's consistent with the macro "linux" predefined by gcc on linux.
> 
> But on windows almost all compilers use "WIN32" or "_WIN32" with all letters uppercased. Should D also use "WIN32" by this reason?

The corresponding one would be "_WINDOWS". But that just looks so awful :-(.



More information about the Digitalmars-d mailing list