From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZkKM-0003XQ-WE for qemu-devel@nongnu.org; Thu, 23 Jun 2011 09:52:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZkKL-0006xY-Hd for qemu-devel@nongnu.org; Thu, 23 Jun 2011 09:52:14 -0400 Date: Thu, 23 Jun 2011 14:52:02 +0100 From: Stefan Hajnoczi Message-ID: <20110623135202.GA12765@stefanha-thinkpad.localdomain> References: <4DFC636D.9090800@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DFC636D.9090800@mail.berlios.de> Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial@nongnu.org, qemu-devel , Roy Tam On Sat, Jun 18, 2011 at 10:35:57AM +0200, Stefan Weil wrote: > Am 18.06.2011 07:13, schrieb Roy Tam: > >This patch fix conflicting types for 'INT32' in basetsd.h in including > >qemu-common.h first. > > > > > >Sign-off-by: Roy Tam > >-- > >diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c > >index 87fdf35..1591df0 100644 > >--- a/ui/vnc-enc-tight.c > >+++ b/ui/vnc-enc-tight.c > >@@ -28,6 +28,8 @@ > > > > #include "config-host.h" > > > >+#include "qemu-common.h" > >+ > > #ifdef CONFIG_VNC_PNG > > #include > > #endif > >@@ -36,8 +38,6 @@ > > #include > > #endif > > > >-#include "qemu-common.h" > >- > > #include "bswap.h" > > #include "qint.h" > > #include "vnc.h" > > Acked-by: Stefan Weil > > The conflicting declaration is in jmorecfg.h which is included from > jpeglib.h. Is the problem that the Windows headers included from qemu-common.h try to #define INT32? http://msdn.microsoft.com/en-us/library/aa383751(v=vs.85).aspx In that case I think an explicit fix is better: #ifdef _WIN32 /* Include this before jpeglib.h for the INT32 definition */ #include #endif ...followed by png/jpeg includes... Simply moving qemu-common.h provides no hints and is rather indirect. Someone may move it back in the future. Stefan