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
#if OS_OBJECT_USE_OBJC
#undef SDDispatchQueueRelease
#undef SDDispatchQueueSetterSementics
#define SDDispatchQueueRelease(q)
#define SDDispatchQueueSetterSementics strong
#else
#undef SDDispatchQueueRelease
#undef SDDispatchQueueSetterSementics
#define SDDispatchQueueRelease(q) (dispatch_release(q))
#define SDDispatchQueueSetterSementics assign
#endif