From 7fdd6f36c8181115c60b781dc97b71107fb7da65 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 14 Jan 2019 23:07:35 -0500 Subject: s/%zu/%d ... (int)/ --- cross-w64-mingw32.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cross-w64-mingw32.txt') diff --git a/cross-w64-mingw32.txt b/cross-w64-mingw32.txt index 7af79e0..80002cf 100644 --- a/cross-w64-mingw32.txt +++ b/cross-w64-mingw32.txt @@ -1,3 +1,8 @@ +# note: msvcrt does not support %zu, see here: +# https://stackoverflow.com/questions/44382862/how-to-printf-a-size-t-without-warning-in-mingw-w64-gcc-7-1/44383330 +# as a workaround, i replaced all instances of %zu with a cast to (int) +# and %d + [binaries] c = '/usr/bin/x86_64-w64-mingw32-gcc' ar = '/usr/bin/x86_64-w64-mingw32-ar' @@ -8,7 +13,7 @@ exe_wrapper = 'wine' [properties] needs_exe_wrapper = true -# c_args = ['-DCROSS=1', '-DSOMETHING=3'] +c_args = ['-mwindows'] # c_link_args = ['-L/usr/local/x86_64-w64-mingw32/lib'] [host_machine] -- cgit v1.2.3