summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-09 17:20:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-09 17:20:16 (GMT)
commitf4d1b6494d5c537ba4a086d61ea86b1dd6843e4b (patch)
tree2a673ed72d271dfaa7cc973c886c03b45881955a /Swiften/TLS/OpenSSL
parent8774d67aabd02086ec0663bb4567cef14bd513c6 (diff)
downloadswift-contrib-f4d1b6494d5c537ba4a086d61ea86b1dd6843e4b.zip
swift-contrib-f4d1b6494d5c537ba4a086d61ea86b1dd6843e4b.tar.bz2
Fixed windows compilation.
Diffstat (limited to 'Swiften/TLS/OpenSSL')
-rw-r--r--Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp
index 5d9aac2..3f134e7 100644
--- a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp
+++ b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp
@@ -6,10 +6,11 @@
#include "Swiften/TLS/OpenSSL/OpenSSLCertificate.h"
-#include <openssl/x509v3.h>
-
#include "Swiften/Base/ByteArray.h"
+#undef X509_NAME // Windows.h defines this, and for some reason, it doesn't get undeffed properly in x509.h
+#include <openssl/x509v3.h>
+
#pragma GCC diagnostic ignored "-Wold-style-cast"
namespace Swift {