I try to add -U__STRICT_ANSI__
to my project build settings in XCode. But if I add it as "preprocessor macros" the commandline result is -DU__STRICT_ANSI__
.
XCode adds automatically "D".
If I add it e.g. to OTHER_CPLUSPLUSFLAGS
-> XCode ignores this flag.
Do anybody know there to add a "undef"-preprocessor flag ( e.g. __STRICT_ANSI__
) in XCode 4.2?
I'm currently running XCode 5.0.2, but I believe the answer will be similar...
-U__STRICT_ANSI__
and hit return again.These steps should cause XCode to set the -U__STRICT_ANSI__
compiler flag. There's a nice illustration in this other Stack Overflow post: Xcode Project-Wide compiler flag