[CMake] Ensuring not building for 64-bit

Michael Jackson mike.jackson at bluequartz.net
Mon Aug 17 12:39:30 EDT 2009


On Aug 17, 2009, at 12:30 PM, ML wrote:

> Hi Mike,
>
>> The double __LP64__ is making sure it (__LP64__) is both DEFINED  
>> and TRUE.
>>
>> # if defined ((__APPLE__)) && defined(__LP64__) && __LP64__
>> typedef CIconHandle  OSColorIcon;  // Mac CIcon
>> #else
>
> To to help me fine tune a bit..
>
> Wouldn't (__APPLE__) be automatically defined if I am compiling on  
> OS X?
>
> Is there a place where I can see what others like __LP64__ are  
> available?
>
> -Jason
>
>

Don't know where to look. There is a gcc command that will give you  
all the predefined symbols:

echo | gcc -E -dM -


502:[mjackson at Ferb:~]$ gcc --version
i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5574)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.


That was on a MacPro running Leopard 10.5.8.

_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio


More information about the CMake mailing list