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

Re: How to define a preprocessor macro. (SOLVED)


  • Subject: Re: How to define a preprocessor macro. (SOLVED)
  • From: Luca Ciciriello <email@hidden>
  • Date: Wed, 4 Feb 2009 13:59:21 +0100

Ok I'm a big stupid.
I've set the preprocessing macro in release configuration and build in debug configuration.
Please forgive my distraction.


Luca.

On Feb 4, 2009, at 1:26 PM, Luca Ciciriello wrote:

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


_______________________________________________ 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
References: 
 >How to define a preprocessor macro. (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: How to define a preprocessor macro.
  • Next by thread: making resource 'MENU' processor independent
  • Index(es):
    • Date
    • Thread