qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0/3] mingw32 compile fixes


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 0/3] mingw32 compile fixes
Date: Mon, 17 May 2010 10:37:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Blue Swirl <address@hidden> writes:

> On 5/16/10, Stefan Weil <address@hidden> wrote:
>> Am 15.05.2010 22:49, schrieb Blue Swirl:
>>
>>
>> > Hi,
>> >
>> > With this mingw32 compiler:
>> >
>> > $ i586-mingw32msvc-gcc -v
>> > Using built-in specs.
>> > Target: i586-mingw32msvc
>> > Configured with:
[...]
>> > build will not succeed because formats %zd, %zu, %hh, %lld, %llx and
>> > %llu are not known by the compiler.
>> >
>> > Any %ll* use is clearly a bug, we have PRI*64 macros just for this
>> purpose.
>> >
>> > For %hh and %z there may be better ways than these patches.
>> >
>> > With the patches I can build working Win32 binaries and there are no
>> warnings.
[...]
>>  It's a compiler bug that the compiler does not know these format strings.
>>  The code works nevertheless (at least with mingw libraries which are
>>  not too old) because the format strings are interpreted by the C runtime
>>  library.
>>
>>  Is it worth changing a lot of files when we can expect a newer mingw
>>  compiler version which works correctly for standard format strings?
>
> When and if that version becomes popular, PRIz* and the %hh hack could
> be removed or a compiler check could be added. But I don't think it's
> worth it, the macros are easy to use.

They're also ugly as sin.



reply via email to

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