From 91e6ab94455327e64037c9190e2d6c2869708bcc Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 16 Jul 2013 12:18:43 +0200 Subject: [PATCH] Fixed issue #45: test for _WIN32 instead of WIN32. --- src/security/cert/openssl/X509Certificate_OpenSSL.cpp | 4 ++-- vmime/constants.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/security/cert/openssl/X509Certificate_OpenSSL.cpp b/src/security/cert/openssl/X509Certificate_OpenSSL.cpp index 20df3739..8c18583b 100644 --- a/src/security/cert/openssl/X509Certificate_OpenSSL.cpp +++ b/src/security/cert/openssl/X509Certificate_OpenSSL.cpp @@ -48,7 +48,7 @@ #include -#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; diff --git a/vmime/constants.hpp b/vmime/constants.hpp index 26e23ca3..b4747f60 100644 --- a/vmime/constants.hpp +++ b/vmime/constants.hpp @@ -31,7 +31,7 @@ // Remove Windows defines of ERROR and WARNING -#ifdef WIN32 +#ifdef _WIN32 #undef ERROR #undef WARNING #endif