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.jack...@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


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to