We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f741e commit 5ba143eCopy full SHA for 5ba143e
test/compare_output.zig
@@ -5,7 +5,11 @@ const tests = @import("tests.zig");
5
6
pub fn addCases(cases: *tests.CompareOutputContext) void {
7
cases.addC("hello world with libc",
8
- \\const c = @cImport(@cInclude("stdio.h"));
+ \\const c = @cImport({
9
+ \\ // See https://github.com/ziglang/zig/issues/515
10
+ \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
11
+ \\ @cInclude("stdio.h");
12
+ \\});
13
\\pub export fn main(argc: c_int, argv: [*][*]u8) c_int {
14
\\ _ = c.puts("Hello, world!");
15
\\ return 0;
0 commit comments