summaryrefslogtreecommitdiff
path: root/src/common/atomic.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-03-07 03:37:57 +0100
committerHaru <haru@dotalux.com>2014-03-07 06:41:01 +0100
commit3289aad8bd6a9b8b8e9f9491234c66160fbf6164 (patch)
tree260657219a8724ddbe443446b648bc26a96320e1 /src/common/atomic.h
parent66c40e84fe1514c71e043b139cebcb45616a2854 (diff)
downloadhercules-3289aad8bd6a9b8b8e9f9491234c66160fbf6164.tar.gz
hercules-3289aad8bd6a9b8b8e9f9491234c66160fbf6164.tar.bz2
hercules-3289aad8bd6a9b8b8e9f9491234c66160fbf6164.tar.xz
hercules-3289aad8bd6a9b8b8e9f9491234c66160fbf6164.zip
Tweaked a platform check to support ARMv6+
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/atomic.h')
-rw-r--r--src/common/atomic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/atomic.h b/src/common/atomic.h
index c2227a9d4..8c01943e7 100644
--- a/src/common/atomic.h
+++ b/src/common/atomic.h
@@ -87,7 +87,9 @@ forceinline volatile int64 InterlockedExchange64(volatile int64 *target, int64 v
#elif defined(__GNUC__)
-#if !defined(__x86_64__) && !defined(__i386__)
+// The __sync functions are available on x86 or ARMv6+
+#if !defined(__x86_64__) && !defined(__i386__) \
+ && ( !defined(__ARM_ARCH_VERSION__) || __ARM_ARCH_VERSION__ < 6 )
#error Your Target Platfrom is not supported
#endif