Update SDWebImageCompat.h

Undefine macros before define to prevent warning on iOS
This commit is contained in:
David O'Callaghan 2013-05-31 12:07:16 +02:00
parent e8c5ed17c0
commit 1b7305c8a7
1 changed files with 4 additions and 0 deletions

View File

@ -30,9 +30,13 @@
#endif #endif
#if OS_OBJECT_USE_OBJC #if OS_OBJECT_USE_OBJC
#undef SDDispatchQueueRelease
#undef SDDispatchQueueSetterSementics
#define SDDispatchQueueRelease(q) #define SDDispatchQueueRelease(q)
#define SDDispatchQueueSetterSementics strong #define SDDispatchQueueSetterSementics strong
#else #else
#undef SDDispatchQueueRelease
#undef SDDispatchQueueSetterSementics
#define SDDispatchQueueRelease(q) (dispatch_release(q)) #define SDDispatchQueueRelease(q) (dispatch_release(q))
#define SDDispatchQueueSetterSementics assign #define SDDispatchQueueSetterSementics assign
#endif #endif