When I define NS_BUILD_32_LIKE_64=1 I can simply write: NSUInteger u = 12; NSLog(@"u = %lu", u );
Otherwise I would need to use a cast like: NSLog(@"u = %lu", (unsigned long)u ); or even more clumsy: #if __LP64__ NSLog(@"u = %lu", u ); #else NSLog(@"u = %u", u ); #endif The 64-Bit Transition Guide for Cocoa just says: "The NS_BUILD_32_LIKE_64 macro is useful when binary compatibility is not a concern, such as when building an application." So: why is this NS_BUILD_32_LIKE_64 not always defined (as default) and what binary compatibility issues I have to be aware of? Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com