diff options
author | Brad King <brad.king@kitware.com> | 2015-10-21 15:32:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-21 15:34:28 (GMT) |
commit | 832fe4b133f47781f4e08df1f83fdc4e3e7aa06b (patch) | |
tree | 280e66e9ce91acd60efdfe894f72ad8a1c1929d3 /Utilities/cmlibarchive/libarchive | |
parent | 0b82f51a308d2ae36a449e6a02a5117199da373a (diff) | |
download | CMake-832fe4b133f47781f4e08df1f83fdc4e3e7aa06b.zip CMake-832fe4b133f47781f4e08df1f83fdc4e3e7aa06b.tar.gz CMake-832fe4b133f47781f4e08df1f83fdc4e3e7aa06b.tar.bz2 |
libarchive: Fix VS 7.1 Debug build
This version of the MS C runtime library forgets to export
_byteswap_ushort.
Diffstat (limited to 'Utilities/cmlibarchive/libarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_read_support_format_lha.c | 2 |
1 files changed, 1 insertions, 1 deletions
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__) |