diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 83ba3a5..df8eb2f 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -47,6 +47,9 @@ #endif #endif #ifdef LIBVNCSERVER_HAVE_LIBJPEG +#ifdef _RPCNDR_H /* This Windows header typedefs 'boolean', jpeglib has to know */ +#define HAVE_BOOLEAN +#endif #include #endif #include 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. */