aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/security/cert/openssl/X509Certificate_OpenSSL.cpp4
-rw-r--r--vmime/constants.hpp2
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 <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;
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