summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-09-11 23:03:49 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-09-11 23:44:05 +0300
commitd73c341351fff11b638a5d27168a24922077ce7f (patch)
treee3fe9d14829c23b1d94cec1d962b39a3026c9f60 /misc.c
parenta20818be9ec660588af325d82e515ebb75bd9905 (diff)
downloadbdwgc-d73c341351fff11b638a5d27168a24922077ce7f.tar.gz
Do not define GC_write_cs for Xbox One target
(fix of commit d16debf3e) Issue #173 (bdwgc). GC_write_cs is not used in GC_write thus there is no need to define and use it in GC_stop_world. * include/private/gc_priv.h [THREADS && MSWIN_XBOX1] (GC_write_cs): Do not declare. * misc.c [THREADS && MSWIN_XBOX1] (GC_write_cs): Do not define. * win32_threads.c (GC_stop_world): Call EnterCriticalSection() and LeaveCriticalSection() only if MSWIN32 or MSWINCE.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index c063b26c..9d02f65e 100644
--- a/misc.c
+++ b/misc.c
@@ -749,8 +749,7 @@ GC_API int GC_CALL GC_is_init_called(void)
return GC_is_initialized;
}
-#if (defined(MSWIN32) || defined(MSWINCE) || defined(MSWIN_XBOX1)) \
- && defined(THREADS)
+#if (defined(MSWIN32) || defined(MSWINCE)) && defined(THREADS)
GC_INNER CRITICAL_SECTION GC_write_cs;
#endif