gthr-win32.c: CreateSemaphoreW instead of CreateSemaphoreA.
authorJacek Caban <jacek@codeweavers.com>
Tue, 17 Sep 2013 11:46:47 +0000 (11:46 +0000)
committerKai Tietz <ktietz@gcc.gnu.org>
Tue, 17 Sep 2013 11:46:47 +0000 (13:46 +0200)
2013-09-17  Jacek Caban  <jacek@codeweavers.com>

* config/i386/gthr-win32.c: CreateSemaphoreW instead of
CreateSemaphoreA.
* config/i386/gthr-win32.h: Likewise.

From-SVN: r202648

libgcc/ChangeLog
libgcc/config/i386/gthr-win32.c
libgcc/config/i386/gthr-win32.h

index 7918f0dc67ccf52296ed8ac05fb3bc27ea83d9e2..5f50361765818c7fa63926683dbdf73ea1398b83 100644 (file)
@@ -1,3 +1,9 @@
+2013-09-17  Jacek Caban  <jacek@codeweavers.com>
+
+       * config/i386/gthr-win32.c: CreateSemaphoreW instead of
+       CreateSemaphoreA.
+       * config/i386/gthr-win32.h: Likewise.
+
 2013-09-16  DJ Delorie  <dj@redhat.com>
 
        * config/rl78/vregs.h: Add G10 register definitions.
index f6f661a0217534defae254d53ecf0abb1733f6fa..f32303179297b6040a2c109f0a7140e577529de2 100644 (file)
@@ -147,7 +147,7 @@ void
 __gthr_win32_mutex_init_function (__gthread_mutex_t *mutex)
 {
   mutex->counter = -1;
-  mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
+  mutex->sema = CreateSemaphoreW (NULL, 0, 65535, NULL);
 }
 
 void
@@ -195,7 +195,7 @@ __gthr_win32_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex)
   mutex->counter = -1;
   mutex->depth = 0;
   mutex->owner = 0;
-  mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
+  mutex->sema = CreateSemaphoreW (NULL, 0, 65535, NULL);
 }
 
 int
index d2e729a00f699ef69c474bc1e1ef8386bee40bb8..1e437fc6498c1e2a741225767d6d95dec79d4fe4 100644 (file)
@@ -635,7 +635,7 @@ static inline void
 __gthread_mutex_init_function (__gthread_mutex_t *__mutex)
 {
   __mutex->counter = -1;
-  __mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
+  __mutex->sema = CreateSemaphoreW (NULL, 0, 65535, NULL);
 }
 
 static inline void
@@ -697,7 +697,7 @@ __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *__mutex)
   __mutex->counter = -1;
   __mutex->depth = 0;
   __mutex->owner = 0;
-  __mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
+  __mutex->sema = CreateSemaphoreW (NULL, 0, 65535, NULL);
 }
 
 static inline int