summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-04-03 01:51:56 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-04-03 01:51:56 +0000
commita3a8d209617bf230fd508fc1313fde71a7798304 (patch)
tree883cd1b098a006afd24558dee9052c092d95b118 /devel
parentUpgrade to 4.05. The Fortify stuff is untested, but I just merged (diff)
Add a patch to make a header file work properly in C++ programs
compiled by egcs.
Notes
Notes: svn path=/head/; revision=10399
Diffstat (limited to 'devel')
-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. */