From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfsLw-0004Cx-NJ for qemu-devel@nongnu.org; Fri, 12 Feb 2010 05:02:24 -0500 Received: from [199.232.76.173] (port=50604 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfsLv-0004CW-Qq for qemu-devel@nongnu.org; Fri, 12 Feb 2010 05:02:24 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfsLt-0000GC-G5 for qemu-devel@nongnu.org; Fri, 12 Feb 2010 05:02:23 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:54491) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfsLs-0000Fh-T4 for qemu-devel@nongnu.org; Fri, 12 Feb 2010 05:02:21 -0500 From: Stefan Weil Date: Fri, 12 Feb 2010 11:02:08 +0100 Message-Id: <1265968928-7079-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] mingw32: Enable C99/POSIX format strings List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers 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 --- configure | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 75c28f4..1567ccf 100755 --- a/configure +++ b/configure @@ -440,6 +440,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 -- 1.6.6.1