Re: iPhone Platform Compiler Symbol?
Re: iPhone Platform Compiler Symbol?
- Subject: Re: iPhone Platform Compiler Symbol?
- From: Peter O'Gorman <email@hidden>
- Date: Thu, 14 May 2009 18:16:43 -0500
Philip Aker wrote:
> On 2009-05-14, at 12:40:57, Michael Crawford wrote:
>
>> "man gcc" documents the following, which will list out *all* the
>> predefinied symbols:
>>
>> touch foo.h; cpp -dM foo.h
>
> # cpp -dM < /dev/null
>
> saves some typing.
Although Chris has answered with the right way to check if building for
iPhoneOS, you can get a list of the predefined macros with:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch arm
-dM -E -x c /dev/null
(to check languages other than C, change the -x c to, e.g. -x
objective-c, -x c++, -x objective-c++ etc)
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
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