Hopefully fix a build error in libgc on some compilers.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 18 Apr 2014 17:33:49 +0000 (19:33 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 18 Apr 2014 17:34:49 +0000 (19:34 +0200)
../../libgc/alloc.c: In function ‘GC_stopped_mark’:
../../libgc/alloc.c:501:9: error: implicit declaration of function ‘GC_cond_register_dynamic_libraries’ [-Werror=implicit-function-declaration]
         GC_cond_register_dynamic_libraries();

libgc/include/private/gc_priv.h

index 25e0fd0ca8688a8efb87c47fa1dbceef4186f897..86b41ca8748c74885fc3d3fc0fee4b2eacae54a8 100644 (file)
@@ -1454,6 +1454,10 @@ GC_bool GC_is_tmp_root GC_PROTO((ptr_t p));
 void GC_register_dynamic_libraries GC_PROTO((void));
                /* Add dynamic library data sections to the root set. */
 
+GC_INNER void GC_cond_register_dynamic_libraries(void);
+               /* Remove and reregister dynamic libraries if we're     */
+               /* configured to do that at each GC.                    */
+
 GC_bool GC_register_main_static_data GC_PROTO((void));
                /* We need to register the main data segment.  Returns  */
                /* TRUE unless this is done implicitly as part of       */