diff options
author | bunnei <bunneidev@gmail.com> | 2019-02-25 05:03:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-25 05:03:13 +0100 |
commit | c6170565b5c3d86ea40da68173e7f94e374c6c11 (patch) | |
tree | 071cab42e2b192c284675e9f5dddb258f7450738 | |
parent | Merge pull request #2144 from lioncash/factor (diff) | |
parent | Remove GCC version checks (diff) | |
download | yuzu-c6170565b5c3d86ea40da68173e7f94e374c6c11.tar yuzu-c6170565b5c3d86ea40da68173e7f94e374c6c11.tar.gz yuzu-c6170565b5c3d86ea40da68173e7f94e374c6c11.tar.bz2 yuzu-c6170565b5c3d86ea40da68173e7f94e374c6c11.tar.lz yuzu-c6170565b5c3d86ea40da68173e7f94e374c6c11.tar.xz yuzu-c6170565b5c3d86ea40da68173e7f94e374c6c11.tar.zst yuzu-c6170565b5c3d86ea40da68173e7f94e374c6c11.zip |
-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 @@ #include <cstring> #include "common/common_types.h" -// GCC 4.6+ -#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) +// GCC +#ifdef __GNUC__ #if __BYTE_ORDER__ && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) && !defined(COMMON_LITTLE_ENDIAN) #define COMMON_LITTLE_ENDIAN 1 @@ -38,7 +38,7 @@ #endif // LLVM/clang -#elif __clang__ +#elif defined(__clang__) #if __LITTLE_ENDIAN__ && !defined(COMMON_LITTLE_ENDIAN) #define COMMON_LITTLE_ENDIAN 1 |