summaryrefslogtreecommitdiffstats
path: root/src/common/swap.h
diff options
context:
space:
mode:
authortgsm <thomas.gresham@hotmail.com>2019-02-19 03:24:53 +0100
committerfearlessTobi <thm.frey@gmail.com>2019-02-24 15:24:06 +0100
commit030814b1cb330a5bee2cceeac2734462c0397353 (patch)
treeaf24a15aec00723ff524944bca3fd3beb3440b62 /src/common/swap.h
parentMerge pull request #2139 from degasus/dma_pusher (diff)
downloadyuzu-030814b1cb330a5bee2cceeac2734462c0397353.tar
yuzu-030814b1cb330a5bee2cceeac2734462c0397353.tar.gz
yuzu-030814b1cb330a5bee2cceeac2734462c0397353.tar.bz2
yuzu-030814b1cb330a5bee2cceeac2734462c0397353.tar.lz
yuzu-030814b1cb330a5bee2cceeac2734462c0397353.tar.xz
yuzu-030814b1cb330a5bee2cceeac2734462c0397353.tar.zst
yuzu-030814b1cb330a5bee2cceeac2734462c0397353.zip
Diffstat (limited to 'src/common/swap.h')
-rw-r--r--src/common/swap.h6
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