boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / gc_dlopen.c
index a069a041d45c1217f787128972cd740f7cdf03da..d0a26e164cbdee8cd5b31b3ab363904cac24f44f 100644 (file)
@@ -23,8 +23,6 @@
  * library. -HB
  */
 
-#include "config.h"
-
 #include "private/gc_priv.h"
 
 # if (defined(GC_PTHREADS) && !defined(GC_DARWIN_THREADS)) && !defined(GC_WIN32_PTHREADS)\
@@ -39,6 +37,8 @@
 #   undef dlopen
 # endif
 
+  GC_bool GC_collection_in_progress(void);
+
   /* Make sure we're not in the middle of a collection, and make       */
   /* sure we don't start any.  Returns previous value of GC_dont_gc.   */
   /* This is invoked prior to a dlopen call to avoid synchronization   */
@@ -48,7 +48,7 @@
   /* calls in either a multithreaded environment, or if the library    */
   /* initialization code allocates substantial amounts of GC'ed memory.        */
   /* But I don't know of a better solution.                            */
-  static void disable_gc_for_dlopen()
+  static void disable_gc_for_dlopen(void)
   {
     LOCK();
     while (GC_incremental && GC_collection_in_progress()) {