aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-12-23 20:05:41 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-12-23 20:05:41 +0200
commit330a5601cf3bd23a9931d5affdb53670485e8ad2 (patch)
tree9e56214847c7f173e5ff29909045668a2f6c7cff
parent39dd39ff389d93192f9365888a61b9c7f83b339f (diff)
downloadmeson-330a5601cf3bd23a9931d5affdb53670485e8ad2.zip
meson-330a5601cf3bd23a9931d5affdb53670485e8ad2.tar.gz
meson-330a5601cf3bd23a9931d5affdb53670485e8ad2.tar.bz2
Fix imports on osx.
-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"