From a3a8d209617bf230fd508fc1313fde71a7798304 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Fri, 3 Apr 1998 01:51:56 +0000 Subject: Add a patch to make a header file work properly in C++ programs compiled by egcs. --- devel/boehm-gc/files/patch-ac | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 devel/boehm-gc/files/patch-ac (limited to 'devel/boehm-gc') 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. */ -- cgit v1.2.3