Suppress "overriding WinCrypt defines" warnings

Suppress "overriding WinCrypt defines" from openssl/x509.h by defining `NOCRYPT`.
Only this file does not check `__WINCRYPT_H__` macro like other headers, since
5d8a1cf715 (diff-74b6370bc092dd2988ab577b2eaa21dcR7)
This commit is contained in:
Nobuyoshi Nakada 2018-07-29 16:17:44 +09:00 committed by GitHub
parent f30569c005
commit 3e95275de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ diff -u include/openssl.orig/x509.h include/openssl/x509.h
extern "C" {
#endif
+#if defined(_WIN32)
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
+#ifndef LIBRESSL_INTERNAL
+#ifdef _MSC_VER
+#pragma message("Warning, overriding WinCrypt defines")