Unverified Commit ada36652 authored by Michael Grunder's avatar Michael Grunder Committed by GitHub
Browse files

Use _WIN32 define instead of WIN32 (#845)

It appears that _WIN32 is always defined by MSVC whereas WIN32 may not
be, depending on configuration.
parent 08593db1
......@@ -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);
......
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