Use _WIN32 define instead of WIN32 (#845)
It appears that _WIN32 is always defined by MSVC whereas WIN32 may not be, depending on configuration.
This commit is contained in:
parent
08593db1f2
commit
ada3665279
4
ssl.c
4
ssl.c
@ -36,7 +36,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
@ -95,7 +95,7 @@ redisContextFuncs redisContextSSLFuncs;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HIREDIS_USE_CRYPTO_LOCKS
|
#ifdef HIREDIS_USE_CRYPTO_LOCKS
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
typedef CRITICAL_SECTION sslLockType;
|
typedef CRITICAL_SECTION sslLockType;
|
||||||
static void sslLockInit(sslLockType* l) {
|
static void sslLockInit(sslLockType* l) {
|
||||||
InitializeCriticalSection(l);
|
InitializeCriticalSection(l);
|
||||||
|
Loading…
Reference in New Issue
Block a user