Update the SD_MAC define
This commit is contained in:
parent
c90e100d55
commit
6797ed8be6
|
@ -13,10 +13,9 @@
|
||||||
#error SDWebImage does not support Objective-C Garbage Collection
|
#error SDWebImage does not support Objective-C Garbage Collection
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Apple's defines from TargetConditionals.h are a bit weird.
|
|
||||||
// Seems like TARGET_OS_MAC is always defined (on all platforms).
|
// Seems like TARGET_OS_MAC is always defined (on all platforms).
|
||||||
// To determine if we are running on OSX, we can only rely on TARGET_OS_IPHONE=0 and all the other platforms
|
// To determine if we are running on macOS, use TARGET_OS_OSX in Xcode 8
|
||||||
#if !TARGET_OS_IPHONE && !TARGET_OS_IOS && !TARGET_OS_TV && !TARGET_OS_WATCH
|
#if TARGET_OS_OSX
|
||||||
#define SD_MAC 1
|
#define SD_MAC 1
|
||||||
#else
|
#else
|
||||||
#define SD_MAC 0
|
#define SD_MAC 0
|
||||||
|
|
Loading…
Reference in New Issue