Hi,
What's the correct macro to use when building for iOS to check if building for 64-bit? Apple docs say use "
#if __LP64__", but it's unclear to me if that also applies to iOS. I tried some tests in Xcode and that didn't work.Regards, Patrick
Hi,
What's the correct macro to use when building for iOS to check if building for 64-bit? Apple docs say use "
#if __LP64__", but it's unclear to me if that also applies to iOS. I tried some tests in Xcode and that didn't work.Regards, Patrick
Yes, that's valid. If you look at the definitiions of some common types in the header files, like NSInteger and CGFloat, you'll see that their underlying type changes on iOS with an __LP64__ check. What are you trying to do where this didn't work?