Include wincrypt.h when compiling with OpenSSL on Windows
[privoxy.git] / project.h
index a9fe894..7918780 100644 (file)
--- a/project.h
+++ b/project.h
 #endif /* FEATURE_HTTPS_INSPECTION_MBEDTLS */
 
 #ifdef FEATURE_HTTPS_INSPECTION_OPENSSL
+#ifdef _WIN32
+#include <wincrypt.h>
+#undef X509_NAME
+#undef X509_EXTENSIONS
+#endif
 #include <openssl/ssl.h>
 #include <openssl/bio.h>
 #include <openssl/err.h>