Re: crossplatform C++, #ifdef
Re: crossplatform C++, #ifdef
- Subject: Re: crossplatform C++, #ifdef
- From: Matthew Farrellee <email@hidden>
- Date: Sat, 13 Nov 2004 12:16:28 -0600
From the gcc manual page, you can run "touch foo.h; cpp -dM foo.h" on
the command-line to see what is #define'd for you by the compiler.
It seem __APPLE__ is defined for GCC 3.3 (and 3.1 for that matter).
matt
On Nov 13, 2004, at 12:00 PM, Finlay Dobbie wrote:
On Sat, 13 Nov 2004 12:56:04 -0500, Phillip Mills <email@hidden>
wrote:
On Nov 13, 2004, at 12:37 PM, Jean-Francois Roy wrote:
I think the one that's typically used is __MACOSX__
Where's that defined?
If I create junk.cpp with the following:
#ifdef __MACOSX__
#error "Got __MACOSX__"
#else
#error "No __MACOSX__"
#endif
'c++ junk.cpp' tells me it's not defined for 3.3.
It isn't defined for any version of GCC. It's quite normal to have a
define like that set in a prefix header or whatever, though.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden