Why is the "linux" version identifier all lowercase?

Brad Roberts braddr at puremagic.com
Sat Jul 30 13:32:18 PDT 2011


On Saturday, July 30, 2011 1:29:13 PM, Nick Sabalausky wrote:
> "Walter Bright" <newshound2 at digitalmars.com> wrote in message 
> news:j11hfi$10tv$1 at digitalmars.com...
>> On 7/30/2011 2:05 AM, Lars T. Kyllingstad wrote:
>>> http://d-programming-language.org/version.html#PredefinedVersions
>>>
>>> Why is the "linux" version identifier all lowercase?
>>
>> Because gcc's predefined macro is "linux".
> 
> If gcc defined a macro to jump off a bridge...  ;)

Keep in mind that linux was first after windows and they were both all 
there was for a long long time.  By the time the next OS support rolled 
around they were quite thoroughly baked in.  Not impossible to change, 
but not sure worth changing either.  It wouldn't be hard to argue that 
both linux and Linux should be defined, but.. still.


More information about the Digitalmars-d mailing list