From 199bbb6292896330ced71dec2e5c58a49af5907e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 4 Jun 2017 10:08:55 -0400 Subject: progress toward hello world without libc in windows --- std/special/bootstrap.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'std/special/bootstrap.zig') 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)); } -- cgit v1.2.3