From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSbj0-0002IU-Gk for qemu-devel@nongnu.org; Thu, 29 Jan 2009 13:34:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSbiy-0002GZ-UT for qemu-devel@nongnu.org; Thu, 29 Jan 2009 13:34:50 -0500 Received: from [199.232.76.173] (port=54355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSbiy-0002GN-Ks for qemu-devel@nongnu.org; Thu, 29 Jan 2009 13:34:48 -0500 Received: from main.gmane.org ([80.91.229.2]:34082 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSbiy-0008SF-8z for qemu-devel@nongnu.org; Thu, 29 Jan 2009 13:34:48 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LSbiw-0003Wb-3z for qemu-devel@nongnu.org; Thu, 29 Jan 2009 18:34:46 +0000 Received: from 204.147.152.1 ([204.147.152.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 18:34:46 +0000 Received: from void by 204.147.152.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 18:34:46 +0000 From: Consul Date: Thu, 29 Jan 2009 10:34:34 -0800 Message-ID: References: <1987955410-BeMail@laptop> <4981B0C9.8010403@codemonkey.ws> <20090129135523.GA7441@shareable.org> <4981C49E.5070207@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <4981C49E.5070207@codemonkey.ws> Sender: news Subject: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.