Hi,

At Fri, 16 May 2003 09:57:51 +0900,
Eric Melville wrote:
> > > I believe __APPLE__ is a gcc defined macro.  I dunno if CodeWarrior or
> > > other compilers define this.  I *think* you're supposed to do something
> > 
> > According to http://predef.sourceforge.net/index.php,
> > __MACOSX__ seems to be defined on Mac OS X.
> 
> I think that is wrong. I've used just __APPLE__ in the past. Here's some
> verbose output to help you out.

Thank you.  Hmmm, would you send the correction to the
maintainer?

> dangspot% cc -E -v empty.c > /dev/null  
> Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
> Thread model: posix
> Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)
>  /usr/libexec/gcc/darwin/ppc/cpp-precomp -smart -arch ppc -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__APPLE_CC__=1151 -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__DYNAMIC__ foo.c -isystem /usr/include/gcc/darwin/3.1 -ispecs=/usr/libexec/gcc/darwin/ppc/3.1/specs -D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=int -D__WCHAR_TYPE__=int -D__WINT_TYPE__=unsigned int
> Apple cpp-precomp 6.14 (devkit-213/devkit_tools-214)
> Reading predefined macros from '/usr/libexec/gcc/darwin/ppc/3.1/specs'

In this case, __MACH__ might be better if this behavior
originates in Mach.

-- 
Nobu Nakada