summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/libjpeg/jconfig.cfg
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/libjpeg/jconfig.cfg')
-rw-r--r--3rdparty/libjpeg/jconfig.cfg8
1 files changed, 7 insertions, 1 deletions
diff --git a/3rdparty/libjpeg/jconfig.cfg b/3rdparty/libjpeg/jconfig.cfg
index bb7435c9ff2..c4548fc29fa 100644
--- a/3rdparty/libjpeg/jconfig.cfg
+++ b/3rdparty/libjpeg/jconfig.cfg
@@ -17,11 +17,17 @@
/* Define this if you get warnings about undefined structures. */
#undef INCOMPLETE_TYPES_BROKEN
-/* Define "boolean" as unsigned char, not int, on Windows systems. */
+/* Define "boolean" as unsigned char, not enum, on Windows systems. */
#ifdef _WIN32
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
typedef unsigned char boolean;
#endif
+#ifndef FALSE /* in case these macros already exist */
+#define FALSE 0 /* values of boolean */
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
#endif