zig/std/c/index.zig
Andrew Kelley d6856859d3 improvements for windows and libc integration
* standard library knows if it is linking against libc and will
   sometimes call libc functions in that case instead of providing
   redundant definitions
 * fix infinite loop bug when resolving use declarations
 * allow calling the same C function from different C imports.
   closes #277
 * push more logic from compiler to std/bootstrap.zig
 * standard library provides way to access errno
   closes #274
 * fix compile error in standard library for windows
 * add implementation of getRandomBytes for windows
2017-03-23 02:59:58 -04:00

14 lines
325 B
Zig

pub use @import("errno.zig");
pub use switch(@compileVar("os")) {
Os.linux => @import("c/linux.zig"),
Os.windows => @import("c/windows.zig"),
Os.darwin, Os.macosx, Os.ios => @import("c/darwin.zig"),
else => empty_import,
};
pub extern fn abort() -> unreachable;
const empty_import = @import("empty.zig");