* [Qemu-devel] [PATCH] mingw32: Enable C99/POSIX format strings
@ 2010-02-12 10:02 Stefan Weil
2010-02-19 21:47 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2010-02-12 10:02 UTC (permalink / raw)
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 <weil@mail.berlios.de>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] mingw32: Enable C99/POSIX format strings
2010-02-12 10:02 [Qemu-devel] [PATCH] mingw32: Enable C99/POSIX format strings Stefan Weil
@ 2010-02-19 21:47 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2010-02-19 21:47 UTC (permalink / raw)
To: Stefan Weil; +Cc: QEMU Developers
On 02/12/2010 04:02 AM, Stefan Weil wrote:
> 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>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> 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
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-19 21:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12 10:02 [Qemu-devel] [PATCH] mingw32: Enable C99/POSIX format strings Stefan Weil
2010-02-19 21:47 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).