summaryrefslogtreecommitdiff
path: root/ssl.c
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-07-08 17:44:30 -0700
committerGitHub <noreply@github.com>2020-07-08 17:44:30 -0700
commitada366527943b53d749963797080966f99e837f4 (patch)
tree287a486a34bd65f99250e85d582ef3bfc74135e3 /ssl.c
parent08593db1f2125b50a98cf20f6388579c34b90e76 (diff)
Use _WIN32 define instead of WIN32 (#845)
It appears that _WIN32 is always defined by MSVC whereas WIN32 may not be, depending on configuration.
Diffstat (limited to 'ssl.c')
-rw-r--r--ssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl.c b/ssl.c
index 10cf607..d74212d 100644
--- a/ssl.c
+++ b/ssl.c
@@ -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);