From 5ba143e7e3418719cc3c4acba9c9bfeea9803e57 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 1 Jan 2020 20:33:07 -0500 Subject: [PATCH] avoid trying to translate microsoft's stdio.h inline functions ...for now. See #515 --- test/compare_output.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/compare_output.zig b/test/compare_output.zig index b13c6cf530..db20709afa 100644 --- a/test/compare_output.zig +++ b/test/compare_output.zig @@ -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;