aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test cases/swift/4 generate/gen/main.swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/test cases/swift/4 generate/gen/main.swift b/test cases/swift/4 generate/gen/main.swift
index 2f2bd36..27398fd 100644
--- a/test cases/swift/4 generate/gen/main.swift
+++ b/test cases/swift/4 generate/gen/main.swift
@@ -1,4 +1,8 @@
-import Glibc
+#if os(OSX)
+ import Darwin
+#else
+ import Glibc
+#endif
let fname = Process.arguments[1]
let code = "public func getGenerated() -> Int {\n return 42\n}\n"