summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefan Weil2010-02-12 11:02:08 +0100
committerAnthony Liguori2010-02-19 22:32:15 +0100
commite94a79364871e06767fc21506f0038f632e1386e (patch)
tree6d41490e6ab1d55a995edfd5ad8a5f85be8417e1 /configure
parentFix hanging user monitor when using balloon command (diff)
downloadqemu-e94a79364871e06767fc21506f0038f632e1386e.tar.gz
qemu-e94a79364871e06767fc21506f0038f632e1386e.tar.xz
qemu-e94a79364871e06767fc21506f0038f632e1386e.zip
mingw32: Enable C99/POSIX format strings
Starting with mingw32-runtime 3.15, C99/POSIX format strings (%zu, %lld, ...) are supported by defining __USE_MINGW_ANSI_STDIO=1. As QEMU uses such format strings, unconditionally define this macro. It won't hurt on older revisions of mingw32-runtime. Tested with manually installed mingw32-runtime 3.15 on debian (cross compiled + wine). Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 2c2e7ae048..8eb5f5be9d 100755
--- a/configure
+++ b/configure
@@ -441,6 +441,8 @@ fi
if test "$mingw32" = "yes" ; then
EXESUF=".exe"
QEMU_CFLAGS="-DWIN32_LEAN_AND_MEAN -DWINVER=0x501 $QEMU_CFLAGS"
+ # enable C99/POSIX format strings (needs mingw32-runtime 3.15 or later)
+ QEMU_CFLAGS="-D__USE_MINGW_ANSI_STDIO=1 $QEMU_CFLAGS"
LIBS="-lwinmm -lws2_32 -liphlpapi $LIBS"
fi