libarchive: Avoid preprocessor symbol conflicts with boringssl on Windows

`<wincrypt.h>` defines symbols conflicting with BoringSSL/AWS-LC.
This commit is contained in:
Haowei Wu
2026-05-06 10:42:14 -07:00
committed by Brad King
parent bfeef792bb
commit 5752bb41e3

View File

@@ -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;