[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH] pc87312: avoid define conflict on mingw32
From: |
Andreas Färber |
Subject: |
Re: [Qemu-ppc] [PATCH] pc87312: avoid define conflict on mingw32 |
Date: |
Mon, 14 Jan 2013 14:44:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 |
Am 13.01.2013 10:47, schrieb Hervé Poussineau:
> Blue Swirl a écrit :
>> Mingw32 headers define FAR, causing this warning:
>> /src/qemu/hw/pc87312.c:38:0: warning: "FAR" redefined [enabled by
>> default]
>> In file included from
>> /usr/local/lib/gcc/i686-mingw32msvc/4.7.0/../../../../i686-mingw32msvc/include/windows.h:48:0,
>>
>> from /src/qemu/include/sysemu/os-win32.h:29,
>> from /src/qemu/include/qemu-common.h:46,
>> from /src/qemu/include/exec/ioport.h:27,
>> from /src/qemu/hw/isa.h:6,
>> from /src/qemu/hw/pc87312.h:28,
>> from /src/qemu/hw/pc87312.c:26:
>> /usr/local/lib/gcc/i686-mingw32msvc/4.7.0/../../../../i686-mingw32msvc/include/windef.h:34:0:
>> note: this is the location of the previous definition
>>
>> Avoid the warning by expanding the macros.
>>
>> Signed-off-by: Blue Swirl <address@hidden>
>> ---
>> hw/pc87312.c | 38 +++++++++++++++++---------------------
>> 1 files changed, 17 insertions(+), 21 deletions(-)
>
> Acked-by: Hervé Poussineau <address@hidden>
Thanks, applied to prep-up:
http://repo.or.cz/w/qemu/afaerber.git/shortlog/refs/heads/prep-up
Andreas