mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-24 08:47:59 +00:00
libarchive: Avoid preprocessor symbol conflicts with boringssl on Windows
`<wincrypt.h>` defines symbols conflicting with BoringSSL/AWS-LC.
This commit is contained in:
@@ -177,6 +177,13 @@ typedef struct {
|
||||
#else
|
||||
#include <windows.h>
|
||||
#include <wincrypt.h>
|
||||
/* Undefine indirect <wincrypt.h> symbols conflicting with BoringSSL/AWS-LC. */
|
||||
#undef X509_NAME
|
||||
#undef X509_EXTENSIONS
|
||||
#undef PKCS7_ISSUER_AND_SERIAL
|
||||
#undef PKCS7_SIGNER_INFO
|
||||
#undef OCSP_REQUEST
|
||||
#undef OCSP_RESPONSE
|
||||
#define ARCHIVE_CRYPTO_WINCRYPT 1
|
||||
typedef struct {
|
||||
int valid;
|
||||
|
||||
Reference in New Issue
Block a user