aboutsummaryrefslogtreecommitdiffstats
path: root/devel/boehm-gc
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-04-03 09:51:56 +0800
committerjdp <jdp@FreeBSD.org>1998-04-03 09:51:56 +0800
commit5d3ead346155baf893dc0895b7fba2738ddf88a6 (patch)
tree0b8f4a1c91e1fb7d23fe586d472d2c7dbc533000 /devel/boehm-gc
parent8a6a99ede2dad1ca9fd8393ff4b49f1377b107d4 (diff)
downloadfreebsd-ports-gnome-5d3ead346155baf893dc0895b7fba2738ddf88a6.tar.gz
freebsd-ports-gnome-5d3ead346155baf893dc0895b7fba2738ddf88a6.tar.zst
freebsd-ports-gnome-5d3ead346155baf893dc0895b7fba2738ddf88a6.zip
Add a patch to make a header file work properly in C++ programs
compiled by egcs.
Diffstat (limited to 'devel/boehm-gc')
-rw-r--r--devel/boehm-gc/files/patch-ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/boehm-gc/files/patch-ac b/devel/boehm-gc/files/patch-ac
new file mode 100644
index 000000000000..621e0519eea9
--- /dev/null
+++ b/devel/boehm-gc/files/patch-ac
@@ -0,0 +1,25 @@
+--- gc_priv.h.orig Fri Feb 9 14:36:32 1996
++++ gc_priv.h Thu Apr 2 17:37:22 1998
+@@ -49,13 +49,18 @@
+ # include "gc_hdrs.h"
+ # endif
+
+-# if !defined(bool)
+- typedef int bool;
++# ifdef __cplusplus
++# define TRUE true
++# define FALSE false
++# else
++# if !defined(bool)
++ typedef int bool;
+ /* This is problematic with C++ implementations that define bool. */
+ /* But those usually treat it correctly as an empty declaration. */
++# endif
++# define TRUE 1
++# define FALSE 0
+ # endif
+-# define TRUE 1
+-# define FALSE 0
+
+ typedef char * ptr_t; /* A generic pointer to which we can add */
+ /* byte displacements. */