Skip to content

Commit

Permalink
Fix ImageLoaderDelegate compilation on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 13, 2015
1 parent f96d4d7 commit 5107e5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Nuke/Source/Core/ImageLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ extension ImageLoaderDelegate {
}

public func imageLoader(loader: ImageLoader, decompressorForRequest request: ImageRequest) -> ImageProcessing? {
return ImageDecompressor(targetSize: request.targetSize, contentMode: request.contentMode)
#if os(OSX)
return nil
#else
return ImageDecompressor(targetSize: request.targetSize, contentMode: request.contentMode)
#endif
}
}

Expand Down

0 comments on commit 5107e5c

Please sign in to comment.