summaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-30 17:42:28 +0000
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-30 17:42:28 +0000
commit5aecb2e6ee34db3e30866d9407c1156be5ff04fd (patch)
treebdffbd465fbfd3f878b11acff8fc8281ec2edd6d /boehm-gc
parent6d66b338102c989f86053de23fd88580f1567767 (diff)
downloadgcc-5aecb2e6ee34db3e30866d9407c1156be5ff04fd.tar.gz
2003-07-30 Andreas Tobler <a.tobler@schweiz.ch>
* dyn_load.c: Define __private_extern__ to match Apple's system header. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69967 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog5
-rw-r--r--boehm-gc/dyn_load.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 96e7f4bf397..633eef54c16 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-30 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * dyn_load.c: Define __private_extern__ to match Apple's system
+ header.
+
2003-07-28 Loren J. Rittle <ljrittle@acm.org>
* os_dep.c: Remove redundancy introduced in last merge.
diff --git a/boehm-gc/dyn_load.c b/boehm-gc/dyn_load.c
index 5ae0e0dcccd..1f4a63646b1 100644
--- a/boehm-gc/dyn_load.c
+++ b/boehm-gc/dyn_load.c
@@ -980,7 +980,13 @@ void GC_register_dynamic_libraries()
#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*/