diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-09-19 00:34:15 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-09-19 00:34:15 +0300 |
commit | b4e2df9080a21b9912269db8c74bec755e8a6223 (patch) | |
tree | 71e2913a9b4f4169716eda8b2d1ce11af2c2ade1 /win32_threads.c | |
parent | f4d690ec7356e577e86c189f98361459b1c4686c (diff) |
Fix missing started_thread_while_stopped call from mark_some if GCC/Clang
* mark.c [WRAP_MARK_SOME && GC_WIN32_THREADS && !GC_PTHREADS]
(GC_started_thread_while_stopped): Declare even if __GNUC__.
* mark.c [WRAP_MARK_SOME && GC_WIN32_THREADS && (MSWIN32 || MSWINCE)]
(GC_mark_some): Invoke GC_started_thread_while_stopped (unless
GC_PTHREADS).
* win32_threads.c [WRAP_MARK_SOME && !GC_PTHREADS]
(GC_started_thread_while_stopped): Define even if __GNUC__.
Diffstat (limited to 'win32_threads.c')
-rw-r--r-- | win32_threads.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32_threads.c b/win32_threads.c index 833d6d15..a99eec1a 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -274,7 +274,7 @@ typedef volatile struct GC_Thread_Rep * GC_vthread; STATIC volatile AO_t GC_attached_thread = FALSE; #endif -#if !defined(__GNUC__) +#if defined(WRAP_MARK_SOME) && !defined(GC_PTHREADS) /* Return TRUE if an thread was attached since we last asked or */ /* since GC_attached_thread was explicitly reset. */ GC_INNER GC_bool GC_started_thread_while_stopped(void) @@ -296,7 +296,7 @@ typedef volatile struct GC_Thread_Rep * GC_vthread; # endif return FALSE; } -#endif /* !__GNUC__ */ +#endif /* WRAP_MARK_SOME */ /* Thread table used if GC_win32_dll_threads is set. */ /* This is a fixed size array. */ |