Guard against USE_PTHREAD_LOCKS and USE_SPIN_LOCK are both defined
authorIvan Maidanski <ivmai@mail.ru>
Wed, 29 Nov 2017 17:47:59 +0000 (20:47 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 29 Nov 2017 17:47:59 +0000 (20:47 +0300)
commit751c9ca1c384971231346f46cfea735403c67d0b
tree539a599d00883e1f33312f82cac8974f01ee1095
parent06001f280b5d9cedb7ca7779971744c2c738337e
Guard against USE_PTHREAD_LOCKS and USE_SPIN_LOCK are both defined

USE_SPIN_LOCK might be specified by client. As it and USE_PTHREAD_LOCKS
are mutually exclusive, one of them should be undefined.

* include/private/gc_locks.h [(!AO_HAVE_test_and_set_acquire
|| GC_RTEMS_PTHREADS || SN_TARGET_PS3 || GC_WIN32_THREADS || LINT2)
&& GC_PTHREADS] (USE_SPIN_LOCK): Undefine (as USE_PTHREAD_LOCKS is
defined).
include/private/gc_locks.h