Re: crossplatform C++, #ifdef
Re: crossplatform C++, #ifdef
- Subject: Re: crossplatform C++, #ifdef
- From: Frederick Cheung <email@hidden>
- Date: Sun, 14 Nov 2004 17:06:35 +0000
On 14 Nov 2004, at 16:59, Finlay Dobbie wrote:
On 14 Nov 2004, at 16:38, Matthew Farrellee wrote:
A "correct" way would probably be to use uname and define your own
platform identifying macros.
But uname returns Darwin on both Darwin and OS X. The former doesn't
have Carbon ;-)
Will TARGET_CARBON work? (You might need to define it yourself or
something).
I'd nose around in CarbonCore/ConditionalMacros and see how they define
TARGET_API_MAC_CARBON, TARGET_OS_MAC, TARGET_API_MAC_OS_X and so on.
Fred
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden