summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-01 23:13:37 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:49 +0200
commit72afdc7d797d58f34c808235555d3e32b14cbad4 (patch)
treed2b2de9a048d21cd25e0434b4b839075e4a8fceb /dyn_load.c
parent329303eed766f3a29505142681bf3c9bfc6c7d2d (diff)
2009-10-01 Ivan Maidanski <ivmai@mail.ru> (really mostly Andreas Tobler)
* allchblk.c (GC_fail_count, GC_large_alloc_warn_interval): Add "extern" keyword to a global variable declaration (some compilers require it). * alloc.c (GC_bytes_found, GC_unmap_threshold, GC_force_unmap_on_gcollect): Ditto. * dyn_load.c (GC_no_win32_dlls, GC_wnt): Ditto. * finalize.c (GC_fail_count): Ditto. * include/private/gc_hdrs.h (GC_hdr_cache_hits, GC_hdr_cache_misses): Ditto. * mallocx.c (GC_bytes_found): Ditto. * mark_rts.c (GC_save_regs_ret_val, GC_world_stopped): Ditto. * misc.c (GC_unmap_threshold): Ditto. * os_dep.c (GC_unmap_threshold, GC_old_allocator): Ditto. * pthread_support.c (GC_markers): Ditto. * thread_local_alloc.c (GC_gcjobjfreelist, GC_gcj_malloc_initialized, GC_gcj_kind): Ditto. * win32_threads.c (GC_fault_handler_lock, GC_write_cs, GC_dont_query_stack_min, GC_markers, GC_wnt): Ditto.
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 8539172..b4f733e 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -835,7 +835,7 @@ void GC_register_dynamic_libraries(void)
return FALSE;
}
# else /* win32 */
- GC_bool GC_no_win32_dlls;
+ extern GC_bool GC_no_win32_dlls; /* defined in os_dep.c */
GC_bool GC_register_main_static_data(void)
{
@@ -867,8 +867,8 @@ void GC_register_dynamic_libraries(void)
/* To workaround that, use -DGC_REGISTER_MEM_PRIVATE. */
# define GC_wnt TRUE
# else
- GC_bool GC_wnt; /* Is Windows NT derivative. */
- /* Defined and set in os_dep.c. */
+ extern GC_bool GC_wnt; /* Is Windows NT derivative. */
+ /* Defined and set in os_dep.c. */
# endif
void GC_register_dynamic_libraries(void)