__LP64__ on OS X --> Snow Leopard Equivalent?

c++, macos, osx-snow-leopard

Solution

`__LP64__` is not an abbreviation of "Leopard 64". It stands for "longs and pointers are 64 bits". It is set on SnowLeopard in exactly the same circumstances as it is on Leopard.

`__LP64__` will not have the same behavior on windows, because windows uses a different 64-bit model, in which longs are not 64 bits wide. Instead, in 64-bit windows, long is 32 bits wide and long longs and pointers are 64 bits wide. This is commonly referred to as the "llp64" model.

Problem

When running on Leopard you can do something like: ``` #if __LP64__ #pragma message ("64 bit Leopard issue") #endif ``` What is Snow Leopard and Snow Leopard 64 AND (most importantly) Where would I have found this answer myself and not had to ask?

Original source