From 289bfa890b758cdc408b33f4dd601410bebd0a9b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 30 Aug 2016 20:48:30 -0700 Subject: [PATCH] fix c hello world example --- example/hello_world/hello_libc.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/hello_world/hello_libc.zig b/example/hello_world/hello_libc.zig index 1f7ba9046..97174fe01 100644 --- a/example/hello_world/hello_libc.zig +++ b/example/hello_world/hello_libc.zig @@ -1,4 +1,4 @@ -const c = @c_import(@c_include("stdio.h")); +const c = @cImport(@cInclude("stdio.h")); export fn main(argc: c_int, argv: &&u8) -> c_int { c.printf(c"Hello, world!\n");