authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-01 20:33:07-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-01 20:33:07-05:00
log5ba143e7e3418719cc3c4acba9c9bfeea9803e57
treeef6065660e81573a4f06b85bd89e710afb3f66fa
parenta3f741e9b8df564f070df0f05ada4875e9118b18
signaturelock-open Commit is signed but in an unrecognized format.

avoid trying to translate microsoft's stdio.h inline functions

...for now. See #515

1 files changed, 5 insertions(+), 1 deletions(-)

test/compare_output.zig+5-1
......@@ -5,7 +5,11 @@ const tests = @import("tests.zig");
55
66pub fn addCases(cases: *tests.CompareOutputContext) void {
77 cases.addC("hello world with libc",
8 \\const c = @cImport(@cInclude("stdio.h"));
8 \\const c = @cImport({
9 \\ // See https://github.com/ziglang/zig/issues/515
10 \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
11 \\ @cInclude("stdio.h");
12 \\});
913 \\pub export fn main(argc: c_int, argv: [*][*]u8) c_int {
1014 \\ _ = c.puts("Hello, world!");
1115 \\ return 0;