Skip to content

Commit f3e33cb

Browse files
committed
Fix build with mingw64 cross compiler
1 parent 7767ca6 commit f3e33cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ if host_machine.system() != 'windows'
3636
endforeach
3737
else
3838
pre_args += [
39+
'-mno-ms-bitfields',
3940
'-Werror=format-extra-args',
41+
'-D__STDC_FORMAT_MACROS',
4042
'-D__USE_MINGW_ANSI_STDIO=1',
4143
]
4244
endif

0 commit comments

Comments
 (0)