From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSXMe-0003QL-BQ for qemu-devel@nongnu.org; Thu, 29 Jan 2009 08:55:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSXMc-0003Q9-6P for qemu-devel@nongnu.org; Thu, 29 Jan 2009 08:55:27 -0500 Received: from [199.232.76.173] (port=51372 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSXMc-0003Q6-3O for qemu-devel@nongnu.org; Thu, 29 Jan 2009 08:55:26 -0500 Received: from mail2.shareable.org ([80.68.89.115]:60568) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSXMb-000724-N7 for qemu-devel@nongnu.org; Thu, 29 Jan 2009 08:55:25 -0500 Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from ) id 1LSXMZ-000249-Jg for qemu-devel@nongnu.org; Thu, 29 Jan 2009 13:55:23 +0000 Date: Thu, 29 Jan 2009 13:55:23 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u" Message-ID: <20090129135523.GA7441@shareable.org> References: <1987955410-BeMail@laptop> <4981B0C9.8010403@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4981B0C9.8010403@codemonkey.ws> 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: > 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. > > > > > > > > >