Module: vkd3d Branch: master Commit: a06d54d24e914f7e8e1a8911dd988647f0669049 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=a06d54d24e914f7e8e1a8911...
Author: Giovanni Mascellani gmascellani@codeweavers.com Date: Mon Jan 24 12:02:26 2022 +0100
makefile: Explicitly avoid ANSI stdio modifiers when cross compiling.
Crosstests are compiled with MinGW and linked against msvcrt, which doesn't necessarily support ANSI stdio format modifiers like "ll". Still, MinGW headers default to emit "ll" for format macros like PRIu64, which is wrong and triggers a lot of warnings in recent enough versions of GCC.
Signed-off-by: Giovanni Mascellani gmascellani@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am index 1c14f95..3b2e7d7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -383,7 +383,7 @@ dummy-vkd3d-version: ## Cross-compile tests cross_implibs = crosslibs/d3d12 CROSS_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/private -I$(builddir)/include -CROSS_CFLAGS = -g -O2 -Wall -municode ${CROSS_CPPFLAGS} +CROSS_CFLAGS = -g -O2 -Wall -municode ${CROSS_CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=0 EXTRA_DIST += $(cross_implibs:=.cross32.def) $(cross_implibs:=.cross64.def)
if HAVE_CROSSTARGET32