diff --git a/SDWebImage/SDWebImageCompat.h b/SDWebImage/SDWebImageCompat.h index 927bff47..a0750456 100644 --- a/SDWebImage/SDWebImageCompat.h +++ b/SDWebImage/SDWebImageCompat.h @@ -37,4 +37,4 @@ #define SDDispatchQueueSetterSementics assign #endif -extern UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData); +extern inline UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData); diff --git a/SDWebImage/SDWebImageCompat.m b/SDWebImage/SDWebImageCompat.m index a803478a..1ff3afbe 100644 --- a/SDWebImage/SDWebImageCompat.m +++ b/SDWebImage/SDWebImageCompat.m @@ -12,7 +12,7 @@ #error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag #endif -UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData) +inline UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData) { if (!imageOrData) {