Skip to content

Instantly share code, notes, and snippets.

@royratcliffe
Created September 6, 2011 12:42
Show Gist options
  • Save royratcliffe/1197442 to your computer and use it in GitHub Desktop.
Save royratcliffe/1197442 to your computer and use it in GitHub Desktop.
NS_NONATOMIC_IOSONLY
// Define NS_NONATOMIC_IOSONLY here for now if not already defined. This is
// necessary during the transition between iOS 4.3 and iOS 5.0. Lion already
// defines NS_NONATOMIC_IOSONLY but iOS 4.3 does not. Instead it defines
// NS_NONATOMIC_IPHONEONLY; the phone has become the OS!
#if !defined(NS_NONATOMIC_IOSONLY)
#if TARGET_OS_IPHONE
#define NS_NONATOMIC_IOSONLY nonatomic
#else
#define NS_NONATOMIC_IOSONLY
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment