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;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SD_MAC
|
||||||
|
CGImageDestinationAddImage(imageDestination, image.CGImage, nil);
|
||||||
|
#else
|
||||||
if (!image.images) {
|
if (!image.images) {
|
||||||
// for static single GIF images
|
// for static single GIF images
|
||||||
CGImageDestinationAddImage(imageDestination, image.CGImage, nil);
|
CGImageDestinationAddImage(imageDestination, image.CGImage, nil);
|
||||||
|
@ -178,6 +181,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Finalize the destination.
|
// Finalize the destination.
|
||||||
if (CGImageDestinationFinalize(imageDestination) == NO) {
|
if (CGImageDestinationFinalize(imageDestination) == NO) {
|
||||||
|
|
|
@ -89,6 +89,10 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SD_MAC
|
||||||
|
return [[UIImage alloc] initWithData:data];
|
||||||
|
#else
|
||||||
|
|
||||||
UIImage *image = [[UIImage alloc] initWithData:data];
|
UIImage *image = [[UIImage alloc] initWithData:data];
|
||||||
if (!image) {
|
if (!image) {
|
||||||
return nil;
|
return nil;
|
||||||
|
@ -111,6 +115,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return image;
|
return image;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UIImage *)incrementallyDecodedImageWithData:(NSData *)data finished:(BOOL)finished {
|
- (UIImage *)incrementallyDecodedImageWithData:(NSData *)data finished:(BOOL)finished {
|
||||||
|
|
Loading…
Reference in New Issue