From f04b4a07317dcdf979fd0ca7da0f0677b0d0f644 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 13 Mar 2013 14:43:34 +0100 Subject: [PATCH] Fix OS_OBJECT_USE_OBJC handling (fix #329) --- SDWebImage/SDWebImageCompat.h | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/SDWebImage/SDWebImageCompat.h b/SDWebImage/SDWebImageCompat.h index cabeaa67..927bff47 100644 --- a/SDWebImage/SDWebImageCompat.h +++ b/SDWebImage/SDWebImageCompat.h @@ -29,27 +29,11 @@ #import #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 + #define SDDispatchQueueRelease(q) #define SDDispatchQueueSetterSementics strong #else + #define SDDispatchQueueRelease(q) (dispatch_release(q)) #define SDDispatchQueueSetterSementics assign #endif