Support for Linux
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import PathKit
|
import PathKit
|
||||||
|
|
||||||
|
#if os(Linux)
|
||||||
|
let NSFileNoSuchFileError = 4
|
||||||
|
#endif
|
||||||
|
|
||||||
/// A class representing a template
|
/// A class representing a template
|
||||||
public class Template {
|
public class Template {
|
||||||
let tokens: [Token]
|
let tokens: [Token]
|
||||||
|
|||||||
@@ -71,7 +71,11 @@ public struct Variable : Equatable, Resolvable {
|
|||||||
current = array.count
|
current = array.count
|
||||||
}
|
}
|
||||||
} else if let object = current as? NSObject { // NSKeyValueCoding
|
} else if let object = current as? NSObject { // NSKeyValueCoding
|
||||||
|
#if os(Linux)
|
||||||
|
return nil
|
||||||
|
#else
|
||||||
current = object.valueForKey(bit)
|
current = object.valueForKey(bit)
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user