• 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
How to define a preprocessor macro.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to define a preprocessor macro.


  • Subject: How to define a preprocessor macro.
  • From: Luca Ciciriello <email@hidden>
  • Date: Wed, 4 Feb 2009 13:26:05 +0100

Hi all.
I've a little problem. In Xcode 3.1.2, in the section "Preprocessor macros" I've typed _CASEINSENSITIVE. Then in my C++ code I use the following discriminator:


#ifdef _CASEINSENSITIVE
	do something
#else
	do something else
#endif

Well, my compiler (GCC 4.2) seems to ignore the first branch and then it execute the second branch.

I've made the setting of the macro in the project options and in the target option.

That's all.

Thanks in advance for any help.

Luca.
_______________________________________________
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: How to define a preprocessor macro. (SOLVED)
      • From: Luca Ciciriello <email@hidden>
  • Prev by Date: Re: #define bug in gcc for delta builds?
  • Next by Date: Re: #define bug in gcc for delta builds?
  • Previous by thread: Re: #define bug in gcc for delta builds?
  • Next by thread: Re: How to define a preprocessor macro. (SOLVED)
  • Index(es):
    • Date
    • Thread