• 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
TargetConditionals.h + llvm + iphone or Mac conditionals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TargetConditionals.h + llvm + iphone or Mac conditionals


  • Subject: TargetConditionals.h + llvm + iphone or Mac conditionals
  • From: David Hoerl <email@hidden>
  • Date: Fri, 24 Jun 2011 14:36:54 -0400

I need to conditionally compile some code based on whether its targetted to the iPhone or the Mac. iPhone should work on both the device and the simulator.

There use to be this file TargetConditionals.h with a bunch of conditionals, but its only useful for GCC.

Is the another file, technique, or defines I can use for this purpose. Googling is getting me no where...


David _______________________________________________ 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: TargetConditionals.h + llvm + iphone or Mac conditionals
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Using Xcode 4 and 3.x on same partition?
  • Next by Date: Re: TargetConditionals.h + llvm + iphone or Mac conditionals
  • Previous by thread: Re: printing std::string in lldb
  • Next by thread: Re: TargetConditionals.h + llvm + iphone or Mac conditionals
  • Index(es):
    • Date
    • Thread