|
@@ -1712,7 +1712,7 @@ lha_crc16(uint16_t crc, const void *pp, size_t len)
|
|
|
for (;len >= 8; len -= 8) {
|
|
for (;len >= 8; len -= 8) {
|
|
|
/* This if statement expects compiler optimization will
|
|
/* This if statement expects compiler optimization will
|
|
|
* remove the stament which will not be executed. */
|
|
* 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)
|
|
# define bswap16(x) _byteswap_ushort(x)
|
|
|
#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 8) \
|
|
#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 8) \
|
|
|
|| defined(__clang__)
|
|
|| defined(__clang__)
|