From d1fee1ba835c9b78011d65864468ce7c92522043 Mon Sep 17 00:00:00 2001 From: green Date: Fri, 15 Mar 2002 18:01:38 +0000 Subject: Address mingw32 issues. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50816 138bc75d-0d04-0410-961f-82ee72b054a4 --- boehm-gc/misc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'boehm-gc/misc.c') diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c index a89f04407b4..50955f458cc 100644 --- a/boehm-gc/misc.c +++ b/boehm-gc/misc.c @@ -499,6 +499,10 @@ void GC_init_inner() # ifdef PRINTSTATS GC_print_stats = 1; # endif +# if defined(MSWIN32) || defined(MSWINCE) + InitializeCriticalSection(&GC_write_cs); +# endif + if (0 != GETENV("GC_PRINT_STATS")) { GC_print_stats = 1; } @@ -536,9 +540,6 @@ void GC_init_inner() if (ALIGNMENT > GC_DS_TAGS && EXTRA_BYTES != 0) { GC_obj_kinds[NORMAL].ok_descriptor = ((word)(-ALIGNMENT) | GC_DS_LENGTH); } -# if defined(MSWIN32) || defined(MSWINCE) - InitializeCriticalSection(&GC_write_cs); -# endif GC_setpagesize(); GC_exclude_static_roots(beginGC_arrays, endGC_arrays); GC_exclude_static_roots(beginGC_obj_kinds, endGC_obj_kinds); -- cgit v1.2.1