#include "wx/module.h"
#endif
+// A hack based on one from tif_jpeg.c to overcome the problem on Windows
+// of rpcndr.h defining boolean with a different type to the jpeg headers.
+//
+// This hack is only necessary for an external jpeg library, the builtin one
+// usually used on Windows doesn't use the type boolean, so always works.
+//
+#ifdef wxHACK_BOOLEAN
+ #define HAVE_BOOLEAN
+ #define boolean wxHACK_BOOLEAN
+#endif
+
extern "C"
{
#if defined(__WXMSW__)