Fixed issue #45: test for _WIN32 instead of WIN32.
This commit is contained in:
parent
62828e20d4
commit
91e6ab9445
@ -48,7 +48,7 @@
|
||||
#include <openssl/err.h>
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
# define strcasecmp _stricmp
|
||||
# define strncasecmp _strnicmp
|
||||
#endif
|
||||
@ -384,7 +384,7 @@ bool X509Certificate_OpenSSL::verifyHostName(const string& hostname) const
|
||||
|
||||
if (strcmp(extStr, "subjectAltName") == 0)
|
||||
{
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
X509V3_EXT_METHOD* method;
|
||||
#else
|
||||
const X509V3_EXT_METHOD* method;
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
// Remove Windows defines of ERROR and WARNING
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#undef ERROR
|
||||
#undef WARNING
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user