This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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*/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]