From 12a3e0512cd0149d4db1609e622de8cfb838d272 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Tue, 6 Jun 2017 03:54:34 -0500 Subject: [PATCH] Fixes for Linux --- Sources/DateComponents.swift | 5 +++-- Sources/Pipeline.swift | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/DateComponents.swift b/Sources/DateComponents.swift index 36499ac..7361726 100644 --- a/Sources/DateComponents.swift +++ b/Sources/DateComponents.swift @@ -8,12 +8,13 @@ #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) import Darwin.C - import struct Foundation.Date - import typealias Foundation.TimeInterval #elseif os(Linux) import Glibc #endif +import struct Foundation.Date +import typealias Foundation.TimeInterval + // Use internally to avoid collisions internal struct DateComponents { diff --git a/Sources/Pipeline.swift b/Sources/Pipeline.swift index e560845..1f486d0 100644 --- a/Sources/Pipeline.swift +++ b/Sources/Pipeline.swift @@ -105,13 +105,11 @@ internal extension Pipeline { return output } - @inline(__always) func evaluate(_ input: [Float]) -> [Float] { return evaluate(input, cmsPipelineEvalFloat) } - @inline(__always) func evaluate(_ input: [UInt16]) -> [UInt16] { return evaluate(input, cmsPipelineEval16)