diff options
author | John Polstra <jdp@FreeBSD.org> | 1998-04-03 01:51:56 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1998-04-03 01:51:56 +0000 |
commit | a3a8d209617bf230fd508fc1313fde71a7798304 (patch) | |
tree | 883cd1b098a006afd24558dee9052c092d95b118 /devel/boehm-gc | |
parent | Upgrade 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/boehm-gc')
-rw-r--r-- | devel/boehm-gc/files/patch-ac | 25 |
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. */ |