diff options
Diffstat (limited to 'plugins/AdvaImg/src/LibJPEG/jmorecfg.h')
-rw-r--r-- | plugins/AdvaImg/src/LibJPEG/jmorecfg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/AdvaImg/src/LibJPEG/jmorecfg.h b/plugins/AdvaImg/src/LibJPEG/jmorecfg.h index 1f645d7ff4..7407ac79b1 100644 --- a/plugins/AdvaImg/src/LibJPEG/jmorecfg.h +++ b/plugins/AdvaImg/src/LibJPEG/jmorecfg.h @@ -303,7 +303,10 @@ typedef void noreturn_t; * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
*/
-#ifdef HAVE_BOOLEAN
+#ifndef HAVE_BOOLEAN
+#if defined FALSE || defined TRUE || defined QGLOBAL_H
+/* Qt3 defines FALSE and TRUE as "const" variables in qglobal.h */
+typedef int boolean;
#ifndef FALSE /* in case these macros already exist */
#define FALSE 0 /* values of boolean */
#endif
@@ -313,6 +316,7 @@ typedef void noreturn_t; #else
typedef enum { FALSE = 0, TRUE = 1 } boolean;
#endif
+#endif
/*
|