pc87312: Avoid define conflict on mingw32
commit08bb4a7c9bb9c12746bce9b3a1f031dd4192afc1
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Jan 2013 08:12:45 +0000 (13 08:12 +0000)
committerAndreas Färber <andreas.faerber@web.de>
Tue, 15 Jan 2013 02:32:37 +0000 (15 03:32 +0100)
treea16d980d21ffc8f4a8b2c6605d10158e759455f2
parent328c24a97b9cde975bc8b12caa4c6c067fff83c6
pc87312: Avoid define conflict on mingw32

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 <blauwirbel@gmail.com>
Acked-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
hw/pc87312.c