Fix the build due to #2064 changes - had to make sure pod lib lint works on macOS as well
This commit is contained in:
parent
f3524d33e5
commit
4ea5423064
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue