qemu-devel
[Top][All Lists]
Advanced

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]