• 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: Controlling targets and headers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling targets and headers?


  • Subject: Re: Controlling targets and headers?
  • From: Brent Gulanowski <email@hidden>
  • Date: Wed, 16 Jun 2004 00:15:05 -0400

On Jun 15, 2004, at 10:15 PM, April Gendill wrote:

> Is there a preprocessor directive (or some other way) that would allow
> me to determine the target being built and include a specific header
> for one target or a different one for another target?
>

I think I know one way. In the Build tab of the Target settings (XCode
native targets, Get Info... or Inspector), you can add a custom C flag.
If you define a unique preprocessor symbol (like "USE_HEADER_XXX"),
using the -D flag, then in the file which optionally includes the
header, surround the #include directive with "#ifdef USE_HEADER_XXX"
and #endif", you should be able to achieve what you want.


--
Brent Gulanowski email@hidden

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Controlling targets and headers? (From: April Gendill <email@hidden>)

  • Prev by Date: Scrolling List of Thumbnails?
  • Next by Date: Re: Scrolling List of Thumbnails?
  • Previous by thread: Controlling targets and headers?
  • Next by thread: Re: Controlling targets and headers?
  • Index(es):
    • Date
    • Thread