diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-23 20:05:41 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-23 20:05:41 +0200 |
commit | 330a5601cf3bd23a9931d5affdb53670485e8ad2 (patch) | |
tree | 9e56214847c7f173e5ff29909045668a2f6c7cff /test cases/swift | |
parent | 39dd39ff389d93192f9365888a61b9c7f83b339f (diff) | |
download | meson-330a5601cf3bd23a9931d5affdb53670485e8ad2.zip meson-330a5601cf3bd23a9931d5affdb53670485e8ad2.tar.gz meson-330a5601cf3bd23a9931d5affdb53670485e8ad2.tar.bz2 |
Fix imports on osx.
Diffstat (limited to 'test cases/swift')
-rw-r--r-- | test cases/swift/4 generate/gen/main.swift | 6 |
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" |