diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/swap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/swap.h b/src/common/swap.h index 32af0b6ac..0e219747f 100644 --- a/src/common/swap.h +++ b/src/common/swap.h | |||
| @@ -28,8 +28,8 @@ | |||
| 28 | #include <cstring> | 28 | #include <cstring> |
| 29 | #include "common/common_types.h" | 29 | #include "common/common_types.h" |
| 30 | 30 | ||
| 31 | // GCC 4.6+ | 31 | // GCC |
| 32 | #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) | 32 | #ifdef __GNUC__ |
| 33 | 33 | ||
| 34 | #if __BYTE_ORDER__ && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) && !defined(COMMON_LITTLE_ENDIAN) | 34 | #if __BYTE_ORDER__ && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) && !defined(COMMON_LITTLE_ENDIAN) |
| 35 | #define COMMON_LITTLE_ENDIAN 1 | 35 | #define COMMON_LITTLE_ENDIAN 1 |
| @@ -38,7 +38,7 @@ | |||
| 38 | #endif | 38 | #endif |
| 39 | 39 | ||
| 40 | // LLVM/clang | 40 | // LLVM/clang |
| 41 | #elif __clang__ | 41 | #elif defined(__clang__) |
| 42 | 42 | ||
| 43 | #if __LITTLE_ENDIAN__ && !defined(COMMON_LITTLE_ENDIAN) | 43 | #if __LITTLE_ENDIAN__ && !defined(COMMON_LITTLE_ENDIAN) |
| 44 | #define COMMON_LITTLE_ENDIAN 1 | 44 | #define COMMON_LITTLE_ENDIAN 1 |