From bb956254774ed022f29c70e98f7ca95c28f2c86f Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Thu, 16 Feb 2023 18:33:06 +0100 Subject: try 'write' that works on mac, but I didn't know if it works on windows --- patches/patches/093_hello_c.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'patches') diff --git a/patches/patches/093_hello_c.patch b/patches/patches/093_hello_c.patch index a0f62c2..60eeaf0 100644 --- a/patches/patches/093_hello_c.patch +++ b/patches/patches/093_hello_c.patch @@ -1,4 +1,4 @@ -63c63 -< const c_res = fprintf(stderr, "Hello C from Zig!"); +57c57 +< const c_res = write(2, "Hello C from Zig!", 17); --- -> const c_res = c.fprintf(stderr, "Hello C from Zig!"); +> const c_res = c.write(2, "Hello C from Zig!", 17); -- cgit v1.2.3