Re: #define DARWIN set by Xcode?
Re: #define DARWIN set by Xcode?
- Subject: Re: #define DARWIN set by Xcode?
- From: Steve Sisak <email@hidden>
- Date: Sun, 19 Nov 2006 09:46:46 -0500
At 9:33 PM -0800 11/16/06, Rick Mann wrote:
On Nov 16, 2006, at 17:31 , Ivan Cavero Belaunde wrote:
#ifndef SOLARIS
#include <stdint.h>
typedef uint8_t uchar_t;
#endif
What's the proper #define set by Xcode to indicate a build is
occurring on Darwin/Mac OS X?
The test in <CarbonCore/ConditionalMacros.h> is:
#if defined(__GNUC__) && (defined(__APPLE_CPP__) ||
defined(__APPLE_CC__) || defined(__NEXT_CPP__) ||
defined(__MACOS_CLASSIC__))
Also, look at </usr/include/AvailabilityMacros.h> and see TechNote 2064.
-Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden