summaryrefslogtreecommitdiff
path: root/sem_wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'sem_wait.c')
-rw-r--r--sem_wait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sem_wait.c b/sem_wait.c
index eeaae95..966afe6 100644
--- a/sem_wait.c
+++ b/sem_wait.c
@@ -63,7 +63,7 @@ ptw32_sem_wait_cleanup(void * sem)
if (*((sem_t *)sem) != NULL && !(WaitForSingleObject(s->sem, 0) == WAIT_OBJECT_0))
{
++s->value;
-#ifdef NEED_SEM
+#if defined(NEED_SEM)
if (s->value > 0)
{
s->leftToUnblock = 0;
@@ -151,7 +151,7 @@ sem_wait (sem_t * sem)
#pragma inline_depth()
#endif
}
-#ifdef NEED_SEM
+#if defined(NEED_SEM)
if (!result && pthread_mutex_lock (&s->lock) == 0)
{