---
 mingw-w64-libraries/winpthreads/src/mutex.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-libraries/winpthreads/src/mutex.c 
b/mingw-w64-libraries/winpthreads/src/mutex.c
index b90120976983..a964abd7dcc1 100644
--- a/mingw-w64-libraries/winpthreads/src/mutex.c
+++ b/mingw-w64-libraries/winpthreads/src/mutex.c
@@ -26,7 +26,6 @@
 #endif
 
 #include <malloc.h>
-#include <stdbool.h>
 #include <stdio.h>
 
 #define WIN32_LEAN_AND_MEAN
@@ -64,7 +63,7 @@ typedef struct {
 
 /* Whether a mutex is still a static initializer (not a pointer to
    a mutex_impl_t). */
-static bool
+static BOOL
 is_static_initializer(pthread_mutex_t m)
 {
   /* Treat 0 as a static initializer as well (for normal mutexes),
@@ -148,7 +147,7 @@ pthread_mutex_lock_intern (pthread_mutex_t *m, DWORD 
timeout)
     /* Make sure there is an event object on which to wait. */
     if (mi->event == NULL) {
       /* Make an auto-reset event object. */
-      HANDLE ev = CreateEvent(NULL, false, false, NULL);
+      HANDLE ev = CreateEvent(NULL, FALSE, FALSE, NULL);
       if (ev == NULL) {
         switch (GetLastError()) {
         case ERROR_ACCESS_DENIED:
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to