summaryrefslogtreecommitdiff
path: root/ptw32_semwait.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-05-30 00:30:56 +0000
committerrpj <rpj>2011-05-30 00:30:56 +0000
commit26ed1ebeb95caec8d733a6a91e71e31312a8eb06 (patch)
treea957bdd3826088a9e447fc830ac4ccf835b77c44 /ptw32_semwait.c
parent2fe8aba6a8a4ce09f353f34881c77f93a9c01ca3 (diff)
Compiler directive cleanups
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)