2009-10-17 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Sat, 17 Oct 2009 20:40:55 +0000 (20:40 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:50 +0000 (21:06 +0400)
* dyn_load.c: Include gc_priv.h before using configuration
information (MACOS).
* dyn_load.c (GC_must_restore_redefined_dlopen): Rename to
GC_MUST_RESTORE_REDEFINED_DLOPEN.

ChangeLog
dyn_load.c

index 74aceac02968cccb13b7706247e21249634d6d7c..d0207071356be22cb91e47d7c2c94e790183cb84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-17  Ivan Maidanski <ivmai@mail.ru>
+
+       * dyn_load.c: Include gc_priv.h before using configuration
+       information (MACOS).
+       * dyn_load.c (GC_must_restore_redefined_dlopen): Rename to
+       GC_MUST_RESTORE_REDEFINED_DLOPEN.
+
 2009-10-17  Ivan Maidanski <ivmai@mail.ru>
 
        * backgraph.c (SET_OH_BG_PTR): Place outermost parenthesis
index 469d9d16988920ccf04d7884a9f116690243ba4a..f7587e6b29bb3104749c0f95d3e674af98072d24 100644 (file)
  * None of this is safe with dlclose and incremental collection.
  * But then not much of anything is safe in the presence of dlclose.
  */
+#include "private/gc_priv.h"
+
 #if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)) \
      && !defined(_GNU_SOURCE)
     /* Can't test LINUX, since this must be defined before other includes */
 #   define _GNU_SOURCE
 #endif
+
 #if !defined(MACOS) && !defined(_WIN32_WCE)
 #  include <sys/types.h>
 #endif
-#include "private/gc_priv.h"
 
 /* BTL: avoid circular redefinition of dlopen if GC_SOLARIS_THREADS defined */
+# undef GC_MUST_RESTORE_REDEFINED_DLOPEN
 # if (defined(GC_PTHREADS) || defined(GC_SOLARIS_THREADS)) \
       && defined(dlopen) && !defined(GC_USE_LD_WRAP)
     /* To support threads in Solaris, gc.h interposes on dlopen by       */
@@ -45,9 +48,7 @@
     /* real system dlopen() in their implementation. We first remove     */
     /* gc.h's dlopen definition and restore it later, after GC_dlopen(). */
 #   undef dlopen
-#   define GC_must_restore_redefined_dlopen
-# else
-#   undef GC_must_restore_redefined_dlopen
+#   define GC_MUST_RESTORE_REDEFINED_DLOPEN
 # endif
 
 /* A user-supplied routine (custom filter) that might be called to      */
@@ -165,7 +166,7 @@ GC_FirstDLOpenedLinkMap(void)
 #endif /* SOLARISDL ... */
 
 /* BTL: added to fix circular dlopen definition if GC_SOLARIS_THREADS defined */
-# if defined(GC_must_restore_redefined_dlopen)
+# ifdef GC_MUST_RESTORE_REDEFINED_DLOPEN
 #   define dlopen GC_dlopen
 # endif