Fix the build due to #2064 changes - had to make sure pod lib lint works on macOS as well
Showing
2 changed files
with
9 additions
and
0 deletions
@@ -160,6 +160,9 @@ | @@ -160,6 +160,9 @@ | ||
160 | return nil; | 160 | return nil; |
161 | } | 161 | } |
162 | 162 | ||
163 | +#ifdef SD_MAC | ||
164 | + CGImageDestinationAddImage(imageDestination, image.CGImage, nil); | ||
165 | +#else | ||
163 | if (!image.images) { | 166 | if (!image.images) { |
164 | // for static single GIF images | 167 | // for static single GIF images |
165 | CGImageDestinationAddImage(imageDestination, image.CGImage, nil); | 168 | CGImageDestinationAddImage(imageDestination, image.CGImage, nil); |
@@ -178,6 +181,7 @@ | @@ -178,6 +181,7 @@ | ||
178 | } | 181 | } |
179 | } | 182 | } |
180 | } | 183 | } |
184 | +#endif | ||
181 | 185 | ||
182 | // Finalize the destination. | 186 | // Finalize the destination. |
183 | if (CGImageDestinationFinalize(imageDestination) == NO) { | 187 | if (CGImageDestinationFinalize(imageDestination) == NO) { |
@@ -89,6 +89,10 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over | @@ -89,6 +89,10 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over | ||
89 | return nil; | 89 | return nil; |
90 | } | 90 | } |
91 | 91 | ||
92 | +#if SD_MAC | ||
93 | + return [[UIImage alloc] initWithData:data]; | ||
94 | +#else | ||
95 | + | ||
92 | UIImage *image = [[UIImage alloc] initWithData:data]; | 96 | UIImage *image = [[UIImage alloc] initWithData:data]; |
93 | if (!image) { | 97 | if (!image) { |
94 | return nil; | 98 | return nil; |
@@ -111,6 +115,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over | @@ -111,6 +115,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over | ||
111 | #endif | 115 | #endif |
112 | 116 | ||
113 | return image; | 117 | return image; |
118 | +#endif | ||
114 | } | 119 | } |
115 | 120 | ||
116 | - (UIImage *)incrementallyDecodedImageWithData:(NSData *)data finished:(BOOL)finished { | 121 | - (UIImage *)incrementallyDecodedImageWithData:(NSData *)data finished:(BOOL)finished { |
-
Please register or login to post a comment