mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
avoid trying to translate microsoft's stdio.h inline functions
...for now. See #515
This commit is contained in:
parent
a3f741e9b8
commit
5ba143e7e3
@ -5,7 +5,11 @@ const tests = @import("tests.zig");
|
||||
|
||||
pub fn addCases(cases: *tests.CompareOutputContext) void {
|
||||
cases.addC("hello world with libc",
|
||||
\\const c = @cImport(@cInclude("stdio.h"));
|
||||
\\const c = @cImport({
|
||||
\\ // See https://github.com/ziglang/zig/issues/515
|
||||
\\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
|
||||
\\ @cInclude("stdio.h");
|
||||
\\});
|
||||
\\pub export fn main(argc: c_int, argv: [*][*]u8) c_int {
|
||||
\\ _ = c.puts("Hello, world!");
|
||||
\\ return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user