mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
jpeg 9: jconfig.h: fix issue with type boolean on Haiku
This commit is contained in:
27
media-libs/jpeg/patches/jpeg-9.patchset
Normal file
27
media-libs/jpeg/patches/jpeg-9.patchset
Normal file
@@ -0,0 +1,27 @@
|
||||
From b176455d2abc3a95f7e9133c8f4e18ba6f8678b5 Mon Sep 17 00:00:00 2001
|
||||
From: Ingo Weinhold <ingo_weinhold@gmx.de>
|
||||
Date: Thu, 13 Jun 2013 23:56:48 +0200
|
||||
Subject: jconfig.cfg: fix handling of "boolean" on Haiku
|
||||
|
||||
|
||||
diff --git a/jconfig.cfg b/jconfig.cfg
|
||||
index bb7435c..69a1c31 100644
|
||||
--- a/jconfig.cfg
|
||||
+++ b/jconfig.cfg
|
||||
@@ -25,6 +25,13 @@ typedef unsigned char boolean;
|
||||
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
|
||||
#endif
|
||||
|
||||
+/* On Haiku <SupportDefs.h> defines macros TRUE and FALSE, but not the type
|
||||
+ boolean. */
|
||||
+#ifdef __HAIKU__
|
||||
+typedef int boolean;
|
||||
+#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
|
||||
+#endif
|
||||
+
|
||||
#ifdef JPEG_INTERNALS
|
||||
|
||||
#undef RIGHT_SHIFT_IS_UNSIGNED
|
||||
--
|
||||
1.7.5
|
||||
|
||||
Reference in New Issue
Block a user