Skip to content

Commit

Permalink
avoid trying to translate microsoft's stdio.h inline functions
Browse files Browse the repository at this point in the history
...for now. See #515
  • Loading branch information
andrewrk committed Jan 2, 2020
1 parent a3f741e commit 5ba143e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/compare_output.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ba143e

Please sign in to comment.