diff options
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/implement.h b/implement.h index 400598c..2e320bb 100644 --- a/implement.h +++ b/implement.h @@ -192,8 +192,6 @@ struct pthread_mutex_t_ pthread_t ownerThread; sem_t wait_sema; /* Mutex release notification to waiting threads. */ - CRITICAL_SECTION wait_cs; /* Serialise lock_idx decrement after mutex - timeout. */ }; struct pthread_mutexattr_t_ @@ -574,6 +572,15 @@ extern "C" # include <process.h> #endif + +/* + * When not building the inlined version of the dll. + */ +#ifndef PTW32_INTERLOCKED_COMPARE_EXCHANGE +#define PTW32_INTERLOCKED_COMPARE_EXCHANGE ptw32_interlocked_compare_exchange +#endif + + /* * Check for old and new versions of cygwin. See the FAQ file: * |