Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another question: OS identifier



The __APPLE__ one is so strong you can't even turn it off! This can be a
blessing or a curse depending on what you are trying to do...

--
Paul W. Nelson
Thursby Software Systems, Inc.

> From: Jerry Pendergraft <email@hidden>
> Date: Wed, 25 Jun 2003 17:38:05 -0500 (CDT)
> To: Markian Hlynka <email@hidden>
> Cc: email@hidden
> Subject: Re: another question: OS identifier
>
> You can always do:
> $ gcc -dumpspecs and look for *predefines:
> The list will show what you have to chose from.
>
> --
> Jerry Pendergraft email@hidden
> Endocardial Solutions voice: 651-523-6935
> 1350 Energy Lane, Suite 110 fax: 651-644-7897
> St Paul, MN 55108-5254 mobile: 651-491-0163
>
> On Wed, 25 Jun 2003, Markian Hlynka wrote:
>
>> Does anyone know, is there a standard OS X flag that I can check when
>> writing portable source? That is, something like
>>
>> #ifdef MACOSX
>> stuff;
>> #endif
>>
>> I mean, is there something that's automagically built in; I know I
>> could do a -DMACOSX on the compile line.
>>
>> Thanks,
>>
>> Markian
>> _______________________________________________
>> darwin-development mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/darwin-development
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> darwin-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/darwin-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.