Re: crossplatform C++, #ifdef
Re: crossplatform C++, #ifdef
- Subject: Re: crossplatform C++, #ifdef
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 14 Nov 2004 17:17:32 +0000
On 14 Nov 2004, at 17:12, 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 ;-)
Well, detecting platform and libraries are different issues. You can
use uname to detect the platform, to detect libraries you should look
into using autoconf and other techniques.
TARGET_OS_MAC looks like it's correct for the context of the original
question :-)
-- Finlay
_______________________________________________
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