diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-06-04 10:08:55 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-06-04 10:08:55 -0400 |
| commit | 199bbb6292896330ced71dec2e5c58a49af5907e (patch) | |
| tree | be04fdb4932b340dfadbf207ed05970c63f61054 /std/special/bootstrap.zig | |
| parent | e5b90651ba118cb0d3293c83bdfbc62c40f4c266 (diff) | |
| download | zig-199bbb6292896330ced71dec2e5c58a49af5907e.tar.gz zig-199bbb6292896330ced71dec2e5c58a49af5907e.zip | |
progress toward hello world without libc in windows
Diffstat (limited to 'std/special/bootstrap.zig')
| -rw-r--r-- | std/special/bootstrap.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/std/special/bootstrap.zig b/std/special/bootstrap.zig index 3d15fe9c59..3c1fe86ceb 100644 --- a/std/special/bootstrap.zig +++ b/std/special/bootstrap.zig @@ -9,7 +9,6 @@ const want_main_symbol = std.target.linking_libc; const want_start_symbol = !want_main_symbol; const posix_exit = std.os.posix.exit; -extern fn ExitProcess(exit_code: c_uint) -> noreturn; var argc_ptr: &usize = undefined; @@ -41,7 +40,7 @@ fn callMainAndExit() -> noreturn { fn exit(failure: bool) -> noreturn { if (builtin.os == builtin.Os.windows) { - ExitProcess(c_uint(failure)); + std.os.windows.ExitProcess(c_uint(failure)); } else { posix_exit(i32(failure)); } |
