diff options
Diffstat (limited to 'librabbitmq/win32/threads.h')
-rw-r--r-- | librabbitmq/win32/threads.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/librabbitmq/win32/threads.h b/librabbitmq/win32/threads.h index 1d1c53f..9a17598 100644 --- a/librabbitmq/win32/threads.h +++ b/librabbitmq/win32/threads.h @@ -29,19 +29,21 @@ #define AMQP_THREAD_H #ifndef WINVER -# define WINVER 0x0502 + /* Windows Vista or newer */ +# define WINVER 0x0600 #endif #ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN #endif #include <windows.h> -typedef CRITICAL_SECTION *pthread_mutex_t; -typedef int pthread_once_t; +typedef SRWLOCK pthread_mutex_t; +#define PTHREAD_MUTEX_INITIALIZER SRWLOCK_INIT; DWORD pthread_self(void); int pthread_mutex_init(pthread_mutex_t *, void *attr); int pthread_mutex_lock(pthread_mutex_t *); int pthread_mutex_unlock(pthread_mutex_t *); + #endif /* AMQP_THREAD_H */ |