This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[boehm-gc] patch to fix apple header breakage with new fsf compilers.
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, "Boehm, Hans" <hans_boehm at hp dot com>
- Date: Wed, 30 Jul 2003 19:41:47 +0200
- Subject: [boehm-gc] patch to fix apple header breakage with new fsf compilers.
Hi,
after the approval from Tom Tromey I commit the following patch to
boehm-gc main.
Thanks also Andrew P.
Andreas
2003-07-30 Andreas Tobler <a.tobler@schweiz.ch>
* dyn_load.c: Define __private_extern__ to match Apple's system
header.
Index: dyn_load.c
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/dyn_load.c,v
retrieving revision 1.20
diff -u -r1.20 dyn_load.c
--- dyn_load.c 28 Jul 2003 04:18:20 -0000 1.20
+++ dyn_load.c 30 Jul 2003 17:41:26 -0000
@@ -980,7 +980,13 @@
#ifdef DARWIN
+#ifndef __private_extern__
+#define __private_extern__ extern
#include <mach-o/dyld.h>
+#undef __private_extern__
+#else
+#include <mach-o/dyld.h>
+#endif
#include <mach-o/getsect.h>
/*#define DARWIN_DEBUG*/