[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/4] softfloat: Avoid uint16 type conflict on
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/4] softfloat: Avoid uint16 type conflict on Darwin |
Date: |
Mon, 31 Oct 2011 20:17:58 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
Am 31.10.2011 20:42, schrieb Peter Maydell:
> On 31 October 2011 19:18, Andreas Färber <address@hidden> wrote:
>> --- a/fpu/softfloat.h
>> +++ b/fpu/softfloat.h
>> @@ -54,6 +54,9 @@ these four paragraphs for those parts of this code that
>> are retained.
>> | to the same as `int'.
>>
>> *----------------------------------------------------------------------------*/
>> typedef uint8_t flag;
>> +#ifdef __APPLE__
>> +#define uint16 qemu_uint16
>> +#endif
>> typedef uint8_t uint8;
>> typedef int8_t int8;
>> #ifndef _AIX
>
> I hate this, but I don't think I quite hate it enough to leave compilation
> on Macs broken in 1.0...
>
> Ideally we should just make a decision about whether we want option
> (1) or (2) from
> http://permalink.gmane.org/gmane.comp.emulators.qemu/115848
That's what "more general solution" refers to.
At this point in time though I'd much prefer to commit a non-intrusive
three-line quickfix (which we can easily remove later on) than no
solution at all or than to refactor lots of softfloat code.
Andreas