summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-08-26 15:17:35 -0700
committerRussell Belfer <rb@github.com>2013-08-26 15:17:35 -0700
commit2f368a661c55b49a8f15905c221f9e76935bedd0 (patch)
tree2e6a8485ac20caff96390224dfe4925f693e1a1d /src/win32
parent430953417f74dfcdbe030bafc069e1c07edceeb6 (diff)
downloadlibgit2-2f368a661c55b49a8f15905c221f9e76935bedd0.tar.gz
Fix MINGW SRWLock typedefs
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/mingw-compat.h2
-rw-r--r--src/win32/pthread.h2
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;