Added minimal posix.def for windows.

This commit is contained in:
Alexander Gorshenev
2017-09-27 13:05:10 +03:00
committed by alexander-gorshenev
parent 788d86bec4
commit 606f98f9d3
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -1236,7 +1236,8 @@ task link_omit_unused(type: LinkKonanTest) {
}
task link_default_libs(type: RunKonanTest) {
goldValue = "ptrdiff = 0\n"
disabled = (project.testTarget == 'wasm32') // there will be no posix.klib for wasm
goldValue = "sizet = 0\n"
source = "link/default/default.kt"
}
+2 -2
View File
@@ -2,6 +2,6 @@ import posix.*
fun main(args: Array<String>) {
// Just check the typealias is in scope.
val ptrdiff: ptrdiff_t = 0L
println("ptrdiff = $ptrdiff")
val sizet: size_t = 0L
println("sizet = $sizet")
}
+3
View File
@@ -0,0 +1,3 @@
package = platform.posix
headers = stdio.h
compilerOpts = -DUNICODE -Wno-incompatible-pointer-types -Wno-deprecated-declarations