aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-07-16 10:18:43 +0000
committerVincent Richard <[email protected]>2013-07-16 10:18:43 +0000
commit91e6ab94455327e64037c9190e2d6c2869708bcc (patch)
tree81769ba2241603dd653378a2446e36db6cff3e62
parentRenamed net::*{part|structure} to net::*message{Part|Structure}. Splitted cod... (diff)
downloadvmime-91e6ab94455327e64037c9190e2d6c2869708bcc.tar.gz
vmime-91e6ab94455327e64037c9190e2d6c2869708bcc.zip
Fixed issue #45: test for _WIN32 instead of WIN32.
-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