X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e604ac7991a2f5bae2ea3ba01662be566e01af8d..855f31ebe72bef834a32df2c274b41fb282ad265:/src/common/imagjpeg.cpp diff --git a/src/common/imagjpeg.cpp b/src/common/imagjpeg.cpp index c92e115396..c6326116c5 100644 --- a/src/common/imagjpeg.cpp +++ b/src/common/imagjpeg.cpp @@ -26,6 +26,17 @@ #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__)