diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-03-06 09:11:59 +0000 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-03-06 09:11:59 +0000 |
commit | b531b01b707370df2cf013fc18c70eda62f5b4be (patch) | |
tree | 9891787833c6fc6b7d3a8e7749edb72323bc0bfe /src/mapi/mapi/u_thread.h | |
parent | e640eec9ba9e2ff0e462671f6a3c548d2e0c40cf (diff) |
mapi: _glthread_DECLARE_STATIC_MUTEX is not broken on Windows.
Diffstat (limited to 'src/mapi/mapi/u_thread.h')
-rw-r--r-- | src/mapi/mapi/u_thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/mapi/u_thread.h b/src/mapi/mapi/u_thread.h index 92a0a3916d..1cc8be3fa3 100644 --- a/src/mapi/mapi/u_thread.h +++ b/src/mapi/mapi/u_thread.h @@ -97,7 +97,7 @@ typedef CRITICAL_SECTION u_mutex; /* http://locklessinc.com/articles/pthreads_on_windows/ */ #define u_mutex_declare_static(name) \ - /* static */ u_mutex name = {(void*)-1, -1, 0, 0, 0, 0} + static u_mutex name = {(PCRITICAL_SECTION_DEBUG)-1, -1, 0, 0, 0, 0} #define u_mutex_init(name) InitializeCriticalSection(&name) #define u_mutex_destroy(name) DeleteCriticalSection(&name) |