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>
|
#include <openssl/err.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
# define strcasecmp _stricmp
|
# define strcasecmp _stricmp
|
||||||
# define strncasecmp _strnicmp
|
# define strncasecmp _strnicmp
|
||||||
#endif
|
#endif
|
||||||
@ -384,7 +384,7 @@ bool X509Certificate_OpenSSL::verifyHostName(const string& hostname) const
|
|||||||
|
|
||||||
if (strcmp(extStr, "subjectAltName") == 0)
|
if (strcmp(extStr, "subjectAltName") == 0)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
X509V3_EXT_METHOD* method;
|
X509V3_EXT_METHOD* method;
|
||||||
#else
|
#else
|
||||||
const X509V3_EXT_METHOD* method;
|
const X509V3_EXT_METHOD* method;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// Remove Windows defines of ERROR and WARNING
|
// Remove Windows defines of ERROR and WARNING
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
#undef ERROR
|
#undef ERROR
|
||||||
#undef WARNING
|
#undef WARNING
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user