From f26e428da505709ec03b2ed2c9eb3db82b30bd7b Mon Sep 17 00:00:00 2001 From: Roy Tam Date: Sat, 18 Jun 2011 13:13:39 +0800 Subject: Fix MinGW compilation when --enable-vnc-jpeg is specified Fix conflicting types for 'INT32' in basetsd.h and jmorecfg.h by including qemu-common.h first. Signed-off-by: Roy Tam Acked-by: Stefan Weil Signed-off-by: Blue Swirl --- ui/vnc-enc-tight.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ui/vnc-enc-tight.c') diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 87fdf35d3e..6d36a7f7ae 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -28,6 +28,11 @@ #include "config-host.h" +/* This needs to be before jpeglib.h line because of conflict with + INT32 definitions between jmorecfg.h (included by jpeglib.h) and + Win32 basetsd.h (included by windows.h). */ +#include "qemu-common.h" + #ifdef CONFIG_VNC_PNG #include #endif @@ -36,8 +41,6 @@ #include #endif -#include "qemu-common.h" - #include "bswap.h" #include "qint.h" #include "vnc.h" -- cgit v1.2.1