• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: #define DARWIN set by Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: #define DARWIN set by Xcode?
      • From: Rick Mann <email@hidden>
References: 
 >#define DARWIN set by Xcode? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: #define DARWIN set by Xcode?
  • Next by Date: Re: missing headers
  • Previous by thread: Re: #define DARWIN set by Xcode?
  • Next by thread: Re: #define DARWIN set by Xcode?
  • Index(es):
    • Date
    • Thread