Support for Linux

This commit is contained in:
Boris Bügling
2015-12-08 16:54:58 +01:00
parent b792cd09b9
commit 356393088b
2 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
import Foundation
import PathKit
#if os(Linux)
let NSFileNoSuchFileError = 4
#endif
/// A class representing a template
public class Template {
let tokens: [Token]

View File

@@ -71,7 +71,11 @@ public struct Variable : Equatable, Resolvable {
current = array.count
}
} else if let object = current as? NSObject { // NSKeyValueCoding
#if os(Linux)
return nil
#else
current = object.valueForKey(bit)
#endif
} else {
return nil
}