summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/archdetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global/archdetect.cpp')
-rw-r--r--src/corelib/global/archdetect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/archdetect.cpp b/src/corelib/global/archdetect.cpp
index e35595e727..344c363031 100644
--- a/src/corelib/global/archdetect.cpp
+++ b/src/corelib/global/archdetect.cpp
@@ -83,10 +83,10 @@
# define ARCH_PROCESSOR "unknown"
#endif
-// endinanness
-#if defined(Q_LITTLE_ENDIAN)
+// endianness
+#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
# define ARCH_ENDIANNESS "little_endian"
-#elif defined(Q_BIG_ENDIAN)
+#elif Q_BYTE_ORDER == Q_BIG_ENDIAN
# define ARCH_ENDIANNESS "big_endian"
#endif