[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u"
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u" |
Date: |
Thu, 29 Jan 2009 13:55:23 +0000 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Anthony Liguori wrote:
> Or we can just do
>
> #ifdef _WIN32
> #define PRIu64 "%llu"
> #endif
>
> or whatever the correct format is.
Qemu does that already!
It's just it defines the macro to "%I64u" because that's the WIN32 way
of writing it...
A quick Google reveals that "%llu" actually doesn't work on Mingw.
(Though, if you were compiling on Cygwin (the Linux-like environment
for Windows), you must use "%llu". But that also defines _WIN32... ho hum).
-- Jamie
>
> Regards,
>
> Anthony Liguori
>
> >I won't blame it for not doing so, BeOS didn't have them either (but
> >hey, it was out before C99...).
> >
> >François.
> >
> >
> >
>
>
>
- [Qemu-devel] [PATCH] Silence half of warnings in MinGW, Consul, 2009/01/28
- Re: [Qemu-devel] [PATCH] Silence half of warnings in MinGW, Anthony Liguori, 2009/01/28
- [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Jamie Lokier, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Jamie Lokier, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", François Revol, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u",
Jamie Lokier <=
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29
- [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u", Consul, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Jamie Lokier, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29
- [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u", Consul, 2009/01/29
- Re: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29