[CMake] Ensuring not building for 64-bit
Michael Jackson
mike.jackson at bluequartz.net
Mon Aug 17 12:19:54 EDT 2009
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
#endif
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
On Aug 17, 2009, at 12:03 PM, ML wrote:
> Hi Mike,
>
>> # if defined ((__APPLE__)) && defined(__LP64__) && __LP64__
>> // 64 bit headers/defines/typedefs here
>> #else
>> // 32 bit headers/defines/typedefs here
>
> Can you clarify a few points?
>
> Why two __LP64__ in your #if?
>
> How would I handle if the 64-bit version of the header is not avail?
> Define the 32-bit there anyway? Doesn't this just keep me in the
> same situation I am in now where headers are not available for 64-bit?
>
> -Jason
>
More information about the CMake
mailing list