From: Tim Kientzle Date: Mon, 15 Jun 2015 18:16:16 +0000 (-0700) Subject: Issue #520: Define BCRYPT_SUCCESS for VS2008 X-Git-Tag: v3.1.900a~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=112c7d7c279a30da6e07452991343b88c8c25e28;p=thirdparty%2Flibarchive.git Issue #520: Define BCRYPT_SUCCESS for VS2008 --- diff --git a/libarchive/archive_cryptor_private.h b/libarchive/archive_cryptor_private.h index e1118ff80..b62ec0c66 100644 --- a/libarchive/archive_cryptor_private.h +++ b/libarchive/archive_cryptor_private.h @@ -48,6 +48,11 @@ typedef struct { #elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) #include +/* Common in other bcrypt implementations, but missing from VS2008. */ +#ifndef BCRYPT_SUCCESS +#define BCRYPT_SUCCESS(r) ((NTSTATUS)(r) == STATUS_SUCCESS) +#endif + #define AES_MAX_KEY_SIZE 32 #define AES_BLOCK_SIZE 16 typedef struct {