diff options
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_hmac_private.h')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_hmac_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_hmac_private.h b/Utilities/cmlibarchive/libarchive/archive_hmac_private.h index 6a8bbf2..a9fb8ec 100644 --- a/Utilities/cmlibarchive/libarchive/archive_hmac_private.h +++ b/Utilities/cmlibarchive/libarchive/archive_hmac_private.h @@ -31,6 +31,13 @@ #define ARCHIVE_HMAC_PRIVATE_H_INCLUDED #ifdef __APPLE__ +# include <AvailabilityMacros.h> +# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 +# define ARCHIVE_HMAC_USE_Apple_CommonCrypto +# endif +#endif + +#ifdef ARCHIVE_HMAC_USE_Apple_CommonCrypto #include <CommonCrypto/CommonHMAC.h> typedef CCHmacContext archive_hmac_sha1_ctx; |