Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix OS_OBJECT_USE_OBJC handling (fix #329)

  • Loading branch information...
commit f04b4a07317dcdf979fd0ca7da0f0677b0d0f644 1 parent f747804
@rs authored
Showing with 2 additions and 18 deletions.
  1. +2 −18 SDWebImage/SDWebImageCompat.h
View
20 SDWebImage/SDWebImageCompat.h
@@ -29,27 +29,11 @@
#import <UIKit/UIKit.h>
#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
Please sign in to comment.
Something went wrong with that request. Please try again.