Commit 2f368a661c55b49a8f15905c221f9e76935bedd0

Russell Belfer 2013-08-26T15:17:35

Fix MINGW SRWLock typedefs

diff --git a/src/win32/mingw-compat.h b/src/win32/mingw-compat.h
index fe0abfb..b06dda2 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 e84de47..679ebed 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;