Use _WIN32 define instead of WIN32 (#845)

It appears that _WIN32 is always defined by MSVC whereas WIN32 may not
be, depending on configuration.
master
Michael Grunder 2020-07-08 17:44:30 -07:00 committed by GitHub
parent 08593db1f2
commit ada3665279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
ssl.c
View File

@ -36,7 +36,7 @@
#include <assert.h>
#include <errno.h>
#include <string.h>
#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#else
#include <pthread.h>
@ -95,7 +95,7 @@ redisContextFuncs redisContextSSLFuncs;
#endif
#ifdef HIREDIS_USE_CRYPTO_LOCKS
#ifdef WIN32
#ifdef _WIN32
typedef CRITICAL_SECTION sslLockType;
static void sslLockInit(sslLockType* l) {
InitializeCriticalSection(l);