[overlay][gardening] Prefer os(macOS) over os(OSX)

This commit is contained in:
Sho Ikeda
2017-12-07 21:50:51 +09:00
parent 7ffb1a4691
commit ff5a27a62d
7 changed files with 11 additions and 11 deletions

View File

@@ -21,7 +21,7 @@ extension ${Self} : CustomPlaygroundQuickLookable {
// we could send a Raw, but I don't want to make a copy of the
// bytes for no good reason make an NSImage out of them and
// send that
#if os(OSX)
#if os(macOS)
let image = data.flatMap(NSImage.init(data:)) ?? NSImage()
#elseif os(iOS) || os(watchOS) || os(tvOS)
let image = data.flatMap(UIImage.init(data:)) ?? UIImage()