qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u"


From: Consul
Subject: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u"
Date: Thu, 29 Jan 2009 10:34:34 -0800
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Anthony Liguori wrote:

I don't think so. mingw32 actuallt defines PRIu64 as "%I64u" even though GCC doesn't like it. FWIW, the following seems to work for me:

/* Mingw has a broken PRIu64 */
#if defined(__MINGW32__)
#undef PRIu64
#define PRIu64 "Ld"
#endif


Ld truncates the output. It appears to be a GCC-4.3 problem, GCC-3.4.2 is quite happy with I64u.





reply via email to

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