Commit 2f368a66 by Russell Belfer

Fix MINGW SRWLock typedefs

parent 43095341
...@@ -24,6 +24,8 @@ GIT_INLINE(size_t) p_strnlen(const char *s, size_t maxlen) { ...@@ -24,6 +24,8 @@ GIT_INLINE(size_t) p_strnlen(const char *s, size_t maxlen) {
return end ? (size_t)(end - s) : maxlen; return end ? (size_t)(end - s) : maxlen;
} }
typedef struct { void *Ptr; } SRWLOCK;
#endif #endif
#endif /* INCLUDE_mingw_compat__ */ #endif /* INCLUDE_mingw_compat__ */
...@@ -25,8 +25,6 @@ typedef CRITICAL_SECTION pthread_mutex_t; ...@@ -25,8 +25,6 @@ typedef CRITICAL_SECTION pthread_mutex_t;
typedef HANDLE pthread_t; typedef HANDLE pthread_t;
typedef HANDLE pthread_cond_t; typedef HANDLE pthread_cond_t;
/* typedef struct { void *Ptr; } SRWLOCK; */
typedef struct { typedef struct {
union { union {
SRWLOCK srwl; SRWLOCK srwl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment