summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libjpeg/jconfig.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/libjpeg/jconfig.txt')
-rw-r--r--src/3rdparty/libjpeg/jconfig.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/3rdparty/libjpeg/jconfig.txt b/src/3rdparty/libjpeg/jconfig.txt
index 8819e79..b96d312 100644
--- a/src/3rdparty/libjpeg/jconfig.txt
+++ b/src/3rdparty/libjpeg/jconfig.txt
@@ -91,6 +91,15 @@
*/
#undef INCOMPLETE_TYPES_BROKEN
+/* Define "boolean" as unsigned char, not int, on Windows systems.
+ */
+#ifdef _WIN32
+#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
+typedef unsigned char boolean;
+#endif
+#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
+#endif
+
/*
* The following options affect code selection within the JPEG library,