]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Guard inclusion of bcrypt.h with HAVE_BCRYPT_H
authorBrad King <brad.king@kitware.com>
Wed, 21 Oct 2015 15:53:50 +0000 (11:53 -0400)
committerBrad King <brad.king@kitware.com>
Mon, 26 Oct 2015 14:14:39 +0000 (10:14 -0400)
We already use this guard everywhere except one inclusion.

libarchive/archive_hmac_private.h

index 3e48bc3ac9cc635c51bd1d6dee71a9e437be63a1..6a8bbf294767f8650a9753b3b196f6cf5fcc5e44 100644 (file)
@@ -35,7 +35,7 @@
 
 typedef        CCHmacContext archive_hmac_sha1_ctx;
 
-#elif defined(_WIN32) && !defined(__CYGWIN__)
+#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H)
 #include <bcrypt.h>
 
 typedef struct {