From ad254469783b4720db64d8ebeeb12aeb0533e542 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Mon, 6 Sep 2010 15:52:48 +0200 Subject: Fix MinGW32 compilation with libjpeg. MinGW32 (or more exactly, a rpcndr.h file included by winsock2.h) typedefs a 'boolean' type that jmorecfg.h included by jpeglib.h also tries to typedef. So, tell the jpeg headers. Closes: 3007302 --- libvncserver/tight.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libvncserver') diff --git a/libvncserver/tight.c b/libvncserver/tight.c index 54eb921..bb033c3 100644 --- a/libvncserver/tight.c +++ b/libvncserver/tight.c @@ -34,6 +34,9 @@ #define NEEDFAR_POINTERS #endif +#ifdef _RPCNDR_H /* This Windows header typedefs 'boolean', jpeglib has to know */ +#define HAVE_BOOLEAN +#endif #include /* Note: The following constant should not be changed. */ -- cgit v1.2.3