Merge pull request #2966 from solbjorn/win-crypt-unforce

libarchive: fix Windows compilation with `ENABLE_CNG=OFF`
(cherry picked from commit d8ca779e4d)
This commit is contained in:
Tim Kientzle authored and Martin Matuska committed 2026-06-23 10:07:36 +02:00
1 parent e1848bcb3d
commit 3513a93276
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ static void la_arc4random_buf(void *, size_t);
#include "archive.h"
#include "archive_random_private.h"
#if defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H)
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <bcrypt.h>
/* Common in other bcrypt implementations, but missing from VS2008. */
-2
View File
@@ -42,7 +42,6 @@
#include <string.h>
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
#if defined(HAVE_BCRYPT_H)
#include <bcrypt.h>
/* Common in other bcrypt implementations, but missing from VS2008. */
@@ -50,7 +49,6 @@
#define BCRYPT_SUCCESS(r) ((NTSTATUS)(r) == STATUS_SUCCESS)
#endif
#endif
#endif
#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif