diff options
author | Brad King <brad.king@kitware.com> | 2015-10-21 12:00:41 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-26 08:59:26 -0400 |
commit | cecac1996cb9cafd5d37f444211fd490d0f8d61a (patch) | |
tree | b0740be49b7ed6900921a3c7552da315484e3ebd /libarchive/archive_read_support_format_lha.c | |
parent | 7f3fc930723dfe47318475aeb6e8e9c619953062 (diff) | |
download | libarchive-cecac1996cb9cafd5d37f444211fd490d0f8d61a.tar.gz |
Workaround missing byte swap symbol on VS 7.1 Debug builds
The VS 7.1 MS C Debug runtime library does not export _byteswap_ushort.
Diffstat (limited to 'libarchive/archive_read_support_format_lha.c')
-rw-r--r-- | libarchive/archive_read_support_format_lha.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_lha.c b/libarchive/archive_read_support_format_lha.c index f8e01af8..c359d83e 100644 --- a/libarchive/archive_read_support_format_lha.c +++ b/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__) |