summaryrefslogtreecommitdiff
path: root/graphics/jpeg/patches/patch-jmorecfg.h
blob: b588b2fac13ebc79174cd5e526714d09a4eddc06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-jmorecfg.h,v 1.3 2014/01/28 21:19:00 wiz Exp $

Fix problem with booleans by reverting to the old definition.

--- jmorecfg.h.orig	2013-09-17 07:20:20.000000000 +0000
+++ jmorecfg.h
@@ -303,19 +303,14 @@ typedef void noreturn_t;
  * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
  */
 
-#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
 #ifndef TRUE
 #define TRUE	1
 #endif
-#else
-typedef enum { FALSE = 0, TRUE = 1 } boolean;
-#endif
+#ifndef HAVE_BOOLEAN
+typedef int boolean;
 #endif