Re: CGFloat and NS_BUILD_32_LIKE_64

2015-02-27 Thread Greg Parker
> On Feb 27, 2015, at 4:14 PM, Rick Mann wrote: > > I thought setting NS_BUILD_32_LIKE_64 = 1 would make CGFloat be double, but > CGFloat seems to be conditionalized on __LP64__ (at least, on iOS. > > I'm building iOS for both 32 and 64 bit devices. What should I do here? I'm > trying to get

Re: CGFloat and NS_BUILD_32_LIKE_64

2015-02-27 Thread Roland King
> On 28 Feb 2015, at 08:14, Rick Mann wrote: > > I thought setting NS_BUILD_32_LIKE_64 = 1 would make CGFloat be double, but > CGFloat seems to be conditionalized on __LP64__ (at least, on iOS. Why did you think that? The docs say The NS_BUILD_32_LIKE_64 preprocessor macro works in a differen

Re: CGFloat and NS_BUILD_32_LIKE_64

2015-02-27 Thread Rick Mann
Because once upon a time I ran into an issue around the size of CGFloat and someone told me to use NS_BUILD_32_LIKE_64, and that took care of it. Ever since then, I believed NS_BUILD_32_LIKE_64 controlled the size of CGFloat. > On Feb 27, 2015, at 16:32 , Roland King wrote: > > >> On 28 Feb 2

CGFloat and NS_BUILD_32_LIKE_64

2015-02-27 Thread Rick Mann
I thought setting NS_BUILD_32_LIKE_64 = 1 would make CGFloat be double, but CGFloat seems to be conditionalized on __LP64__ (at least, on iOS. I'm building iOS for both 32 and 64 bit devices. What should I do here? I'm trying to get rid of a bunch of implicit conversion warnings. Thanks. -- Ri