// Copyright © 2019 Flinesoft. All rights reserved.

/// A type which conforms to DivisibleArithmetic provides the basic arithmetic operations: additon, subtraction, multiplication and division.
public protocol DivisibleArithmetic: Numeric {
    init(_ value: Int)
    static func / (lhs: Self, rhs: Self) -> Self
}

extension Double: DivisibleArithmetic {}
extension Float: DivisibleArithmetic {}

#if canImport(CoreGraphics)
    import CoreGraphics

    extension CGFloat: DivisibleArithmetic {}
#endif

// Copyright © 2019 Flinesoft. All rights reserved.

import CoreGraphics

/// A type which conforms to DivisibleArithmetic provides the basic arithmetic operations: additon, subtraction, multiplication and division.
public protocol DivisibleArithmetic: Numeric {
    init(_ value: Int)
    static func / (lhs: Self, rhs: Self) -> Self
}

extension Double: DivisibleArithmetic {}
extension Float: DivisibleArithmetic {}
extension CGFloat: DivisibleArithmetic {}

--- 
+++ 
@@ -1,6 +1,4 @@
 // Copyright © 2019 Flinesoft. All rights reserved.
-
-import CoreGraphics
 
 /// A type which conforms to DivisibleArithmetic provides the basic arithmetic operations: additon, subtraction, multiplication and division.
 public protocol DivisibleArithmetic: Numeric {
@@ -10,4 +8,9 @@
 
 extension Double: DivisibleArithmetic {}
 extension Float: DivisibleArithmetic {}
-extension CGFloat: DivisibleArithmetic {}
+
+#if canImport(CoreGraphics)
+    import CoreGraphics
+
+    extension CGFloat: DivisibleArithmetic {}
+#endif
Fix linux support by excluding `CGFloat` extension there
