diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-01-14 23:07:35 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-01-14 23:07:35 -0500 |
commit | 7fdd6f36c8181115c60b781dc97b71107fb7da65 (patch) | |
tree | 1a04507fdd687ed569da4e21fc8a998cdeb29e53 /cross-w64-mingw32.txt | |
parent | d805435f185c0f00b53d3be17707a41aba14373c (diff) | |
download | sok-7fdd6f36c8181115c60b781dc97b71107fb7da65.tar.bz2 sok-7fdd6f36c8181115c60b781dc97b71107fb7da65.zip |
s/%zu/%d ... (int)/
Diffstat (limited to 'cross-w64-mingw32.txt')
-rw-r--r-- | cross-w64-mingw32.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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] |