From 1b7305c8a7d3dfdf172551438ebc97f2b0a2075f Mon Sep 17 00:00:00 2001 From: David O'Callaghan Date: Fri, 31 May 2013 12:07:16 +0200 Subject: [PATCH] Update SDWebImageCompat.h Undefine macros before define to prevent warning on iOS --- SDWebImage/SDWebImageCompat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SDWebImage/SDWebImageCompat.h b/SDWebImage/SDWebImageCompat.h index 66f5e6e7..d36c6911 100644 --- a/SDWebImage/SDWebImageCompat.h +++ b/SDWebImage/SDWebImageCompat.h @@ -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