Fix the build due to #2064 changes - had to make sure pod lib lint works on macOS as well

This commit is contained in:
Bogdan Poplauschi 2017-10-18 19:10:18 +03:00
parent f3524d33e5
commit 4ea5423064
2 changed files with 9 additions and 0 deletions

View File

@ -160,6 +160,9 @@
return nil;
}
#ifdef SD_MAC
CGImageDestinationAddImage(imageDestination, image.CGImage, nil);
#else
if (!image.images) {
// for static single GIF images
CGImageDestinationAddImage(imageDestination, image.CGImage, nil);
@ -178,6 +181,7 @@
}
}
}
#endif
// Finalize the destination.
if (CGImageDestinationFinalize(imageDestination) == NO) {

View File

@ -89,6 +89,10 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
return nil;
}
#if SD_MAC
return [[UIImage alloc] initWithData:data];
#else
UIImage *image = [[UIImage alloc] initWithData:data];
if (!image) {
return nil;
@ -111,6 +115,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
#endif
return image;
#endif
}
- (UIImage *)incrementallyDecodedImageWithData:(NSData *)data finished:(BOOL)finished {