#if defined(__APPLE__) works.

However this is considered "fragile" by Apple and is not reccomended. 
Better practice is to check for platorm in the configure script and add 
something like DARWIN or MACOSX to the CFLAGS depending on platform 
(e.g, -DMACOSX), then use

#ifdef MACOSX
...
#else
..

-Ben

On Thursday, September 19, 2002, at 01:53  PM, Olaf Foellinger wrote:

> Hi,
>
> which #define ??? do you use when you mark apple specific source code ?
> I've found __APPLE_CC__ but I'm not sure if this is the best choice.
>
>
> Gruss Olaf
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Fink-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/fink-devel
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to