From: Ivan Maidanski Date: Thu, 12 Apr 2012 19:44:00 +0000 (+0400) Subject: Remove code duplication in gc_locks.h regarding USE_PTHREAD_LOCKS X-Git-Tag: gc7_3alpha2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0236db63766f8377e6ed009959231b91274b1ab;p=gc Remove code duplication in gc_locks.h regarding USE_PTHREAD_LOCKS * include/private/gc_locks.h (USE_PTHREAD_LOCKS): Remove code duplication. --- diff --git a/include/private/gc_locks.h b/include/private/gc_locks.h index a5d9c35f..0296707f 100644 --- a/include/private/gc_locks.h +++ b/include/private/gc_locks.h @@ -43,15 +43,8 @@ # define UNCOND_UNLOCK() PCR_Th_ML_Release(&GC_allocate_ml) # endif -# if !defined(AO_HAVE_test_and_set_acquire) && defined(GC_PTHREADS) -# define USE_PTHREAD_LOCKS -# endif - -# if defined(GC_WIN32_THREADS) && defined(GC_PTHREADS) -# define USE_PTHREAD_LOCKS -# endif - -# if defined(GC_RTEMS_PTHREADS) +# if (!defined(AO_HAVE_test_and_set_acquire) || defined(GC_RTEMS_PTHREADS) \ + || defined(GC_WIN32_THREADS)) && defined(GC_PTHREADS) # define USE_PTHREAD_LOCKS # endif