diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2019-09-11 23:03:49 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2019-09-11 23:44:05 +0300 |
commit | d73c341351fff11b638a5d27168a24922077ce7f (patch) | |
tree | e3fe9d14829c23b1d94cec1d962b39a3026c9f60 /misc.c | |
parent | a20818be9ec660588af325d82e515ebb75bd9905 (diff) | |
download | bdwgc-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |