1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

pref,os,sokol,cgen: ease compilation of 2048 with -os wasm32_emscripten (#15820)

This commit is contained in:
Delyan Angelov
2022-09-20 00:17:13 +03:00
committed by GitHub
parent e6e3751980
commit 69c9d47a40
12 changed files with 158 additions and 44 deletions

View File

@@ -901,7 +901,9 @@ pub fn fork() int {
pub fn wait() int {
mut pid := -1
$if !windows {
pid = C.wait(0)
$if !emscripten ? {
pid = C.wait(0)
}
}
$if windows {
panic('os.wait not supported in windows') // TODO