summaryrefslogtreecommitdiff
path: root/ptw32_semwait.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_semwait.c')
-rw-r--r--ptw32_semwait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ptw32_semwait.c b/ptw32_semwait.c
index 361366b..c3c4fd0 100644
--- a/ptw32_semwait.c
+++ b/ptw32_semwait.c
@@ -34,7 +34,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
-#ifndef _UWIN
+#if !defined(_UWIN)
/*# include <process.h> */
#endif
#include "pthread.h"
@@ -96,7 +96,7 @@ ptw32_semwait (sem_t * sem)
/* Must wait */
if (WaitForSingleObject (s->sem, INFINITE) == WAIT_OBJECT_0)
{
-#ifdef NEED_SEM
+#if defined(NEED_SEM)
if (pthread_mutex_lock (&s->lock) == 0)
{
if (*sem == NULL)