From 2f368a661c55b49a8f15905c221f9e76935bedd0 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Mon, 26 Aug 2013 15:17:35 -0700 Subject: [PATCH] Fix MINGW SRWLock typedefs --- src/win32/mingw-compat.h | 2 ++ src/win32/pthread.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/mingw-compat.h b/src/win32/mingw-compat.h index fe0abfb54..b06dda209 100644 --- a/src/win32/mingw-compat.h +++ b/src/win32/mingw-compat.h @@ -24,6 +24,8 @@ GIT_INLINE(size_t) p_strnlen(const char *s, size_t maxlen) { return end ? (size_t)(end - s) : maxlen; } +typedef struct { void *Ptr; } SRWLOCK; + #endif #endif /* INCLUDE_mingw_compat__ */ diff --git a/src/win32/pthread.h b/src/win32/pthread.h index e84de471f..679ebed23 100644 --- a/src/win32/pthread.h +++ b/src/win32/pthread.h @@ -25,8 +25,6 @@ typedef CRITICAL_SECTION pthread_mutex_t; typedef HANDLE pthread_t; typedef HANDLE pthread_cond_t; -/* typedef struct { void *Ptr; } SRWLOCK; */ - typedef struct { union { SRWLOCK srwl;