From 832fe4b133f47781f4e08df1f83fdc4e3e7aa06b Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 21 Oct 2015 11:32:11 -0400 Subject: libarchive: Fix VS 7.1 Debug build This version of the MS C runtime library forgets to export _byteswap_ushort. --- Utilities/cmlibarchive/libarchive/archive_read_support_format_lha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/cmlibarchive/libarchive/archive_read_support_format_lha.c b/Utilities/cmlibarchive/libarchive/archive_read_support_format_lha.c index f8e01af..c359d83 100644 --- a/Utilities/cmlibarchive/libarchive/archive_read_support_format_lha.c +++ b/Utilities/cmlibarchive/libarchive/archive_read_support_format_lha.c @@ -1712,7 +1712,7 @@ lha_crc16(uint16_t crc, const void *pp, size_t len) for (;len >= 8; len -= 8) { /* This if statement expects compiler optimization will * remove the stament which will not be executed. */ -#ifdef _MSC_VER /* Visual Studio */ +#if defined(_MSC_VER) && _MSC_VER >= 1400 /* Visual Studio */ # define bswap16(x) _byteswap_ushort(x) #elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 8) \ || defined(__clang__) -- cgit v0.12