From aea685e8b44520b825785afa4c62b0d92120d75d Mon Sep 17 00:00:00 2001 From: John Sundell Date: Sun, 26 Aug 2018 22:57:02 +0200 Subject: [PATCH] Color: Exclude internal extension on Linux --- Sources/Splash/Theming/Color.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Splash/Theming/Color.swift b/Sources/Splash/Theming/Color.swift index ad64279..7ffc1e9 100644 --- a/Sources/Splash/Theming/Color.swift +++ b/Sources/Splash/Theming/Color.swift @@ -12,8 +12,10 @@ import Cocoa public typealias Color = NSColor #endif +#if !os(Linux) internal extension Color { convenience init(red: CGFloat, green: CGFloat, blue: CGFloat) { self.init(red: red, green: green, blue: blue, alpha: 1) } } +#endif