diff options
| author | Michael Grunder <michael.grunder@gmail.com> | 2020-07-08 17:44:30 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-08 17:44:30 -0700 | 
| commit | ada366527943b53d749963797080966f99e837f4 (patch) | |
| tree | 287a486a34bd65f99250e85d582ef3bfc74135e3 | |
| parent | 08593db1f2125b50a98cf20f6388579c34b90e76 (diff) | |
| download | hiredict-ada366527943b53d749963797080966f99e837f4.tar.xz | |
Use _WIN32 define instead of WIN32 (#845)
It appears that _WIN32 is always defined by MSVC whereas WIN32 may not
be, depending on configuration.
| -rw-r--r-- | ssl.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -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); | 
