]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagjpeg.cpp
we must turn off AA for XOR etc.
[wxWidgets.git] / src / common / imagjpeg.cpp
index c92e1153966133a7914bad6091c7f97bbb505568..86f864b7534a2ee6aa8c472efd6e788dc40f6927 100644 (file)
     #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.
+//
+#if defined wxHACK_BOOLEAN || defined __RPCNDR_H__ || defined __WINE_RPCNDR_H
+    #define HAVE_BOOLEAN
+
+    #ifdef wxHACK_BOOLEAN
+        #define boolean wxHACK_BOOLEAN
+    #else
+        #define boolean int
+    #endif
+#endif
+
 extern "C"
 {
     #if defined(__WXMSW__)