Fixed issue #45: test for _WIN32 instead of WIN32.

This commit is contained in:
Vincent Richard 2013-07-16 12:18:43 +02:00
parent 62828e20d4
commit 91e6ab9445
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -31,7 +31,7 @@
// Remove Windows defines of ERROR and WARNING
#ifdef WIN32
#ifdef _WIN32
#undef ERROR
#undef WARNING
#endif