[babl] Use _WIN32 instead of WIN32



commit 31ce2529ce8539cd13b314f95cdfd7550258e401
Author: Tor Lillqvist <tml iki fi>
Date:   Fri Jan 29 11:50:36 2010 +0200

    Use _WIN32 instead of WIN32
    
    _WIN32 works more reliably, like if somebody compiles with --std=c99.

 babl/babl-mutex.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/babl/babl-mutex.c b/babl/babl-mutex.c
index 99c8615..3f82cc5 100644
--- a/babl/babl-mutex.c
+++ b/babl/babl-mutex.c
@@ -27,7 +27,7 @@ BablMutex  *
 babl_mutex_new (void)
 {
   BablMutex *mutex = malloc (sizeof (BablMutex));
-#ifdef WIN32
+#ifdef _WIN32
   InitializeCriticalSection (mutex);
 #else
   pthread_mutex_init (mutex, NULL);
@@ -38,7 +38,7 @@ babl_mutex_new (void)
 void
 babl_mutex_destroy (BablMutex *mutex)
 {
-#ifdef WIN32
+#ifdef _WIN32
   DeleteCriticalSection (mutex);
 #else
   pthread_mutex_destroy(mutex);
@@ -49,7 +49,7 @@ babl_mutex_destroy (BablMutex *mutex)
 void
 babl_mutex_lock (BablMutex *mutex)
 {
-#ifdef WIN32
+#ifdef _WIN32
   EnterCriticalSection (mutex);
 #else
   pthread_mutex_lock (mutex);
@@ -59,7 +59,7 @@ babl_mutex_lock (BablMutex *mutex)
 void
 babl_mutex_unlock (BablMutex *mutex)
 {
-#ifdef WIN32
+#ifdef _WIN32
   LeaveCriticalSection (mutex);
 #else
   pthread_mutex_unlock (mutex);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]