Fix OS_OBJECT_USE_OBJC handling (fix #329)
This commit is contained in:
parent
f747804843
commit
f04b4a0731
|
@ -29,27 +29,11 @@
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// @see https://github.com/ccgus/fmdb/commit/aef763eeb64e6fa654e7d121f1df4c16a98d9f4f
|
|
||||||
#define SDDispatchQueueRelease(q) (dispatch_release(q))
|
|
||||||
#if TARGET_OS_IPHONE
|
|
||||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000
|
|
||||||
#undef SDDispatchQueueRelease
|
|
||||||
#define SDDispatchQueueRelease(q)
|
|
||||||
#undef SDDispatchQueueSetterSementics
|
|
||||||
#define SDDispatchQueueSetterSementics strong
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
|
|
||||||
#undef SDDispatchQueueRelease
|
|
||||||
#define SDDispatchQueueRelease(q)
|
|
||||||
#undef SDDispatchQueueSetterSementics
|
|
||||||
#define SDDispatchQueueSetterSementics strong
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if OS_OBJECT_USE_OBJC
|
#if OS_OBJECT_USE_OBJC
|
||||||
|
#define SDDispatchQueueRelease(q)
|
||||||
#define SDDispatchQueueSetterSementics strong
|
#define SDDispatchQueueSetterSementics strong
|
||||||
#else
|
#else
|
||||||
|
#define SDDispatchQueueRelease(q) (dispatch_release(q))
|
||||||
#define SDDispatchQueueSetterSementics assign
|
#define SDDispatchQueueSetterSementics assign
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue