qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Stefan Weil <weil@mail.berlios.de>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] mingw32: Enable C99/POSIX format strings
Date: Fri, 19 Feb 2010 15:47:25 -0600	[thread overview]
Message-ID: <4B7F06ED.1080805@codemonkey.ws> (raw)
In-Reply-To: <1265968928-7079-1-git-send-email-weil@mail.berlios.de>

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
>
>    

      reply	other threads:[~2010-02-19 21:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-12 10:02 [Qemu-devel] [PATCH] mingw32: Enable C99/POSIX format strings Stefan Weil
2010-02-19 21:47 ` Anthony Liguori [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B7F06ED.1080805@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    --cc=weil@mail.berlios.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).