summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2019-01-17 16:10:59 +0000
committerYann Ylavic <ylavic@apache.org>2019-01-17 16:10:59 +0000
commit18c7d0cc2c89500f47bf19a46bbe86331400f9f2 (patch)
treeb238d250d49385586cd07579684328564d95e52c /include/arch
parent9331bb21c90998c57e8de42f1e54283d544b55f1 (diff)
downloadapr-18c7d0cc2c89500f47bf19a46bbe86331400f9f2.tar.gz
atomic: c89/ansi can use native atomics for builtin and solaris
No asm volatile is used there, so prefer native over mutexes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1851542 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/unix/apr_arch_atomic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/arch/unix/apr_arch_atomic.h b/include/arch/unix/apr_arch_atomic.h
index 6c1b2c63a..559257deb 100644
--- a/include/arch/unix/apr_arch_atomic.h
+++ b/include/arch/unix/apr_arch_atomic.h
@@ -24,15 +24,15 @@
#if defined(USE_ATOMICS_GENERIC)
/* noop */
-#elif defined(__GNUC__) && defined(__STRICT_ANSI__)
-/* force use of generic atomics if building e.g. with -std=c89, which
- * doesn't allow inline asm */
-# define USE_ATOMICS_GENERIC
#elif HAVE_ATOMIC_BUILTINS
# define USE_ATOMICS_BUILTINS
#elif defined(SOLARIS2) && SOLARIS2 >= 10
# define USE_ATOMICS_SOLARIS
# define NEED_ATOMICS_GENERIC64
+#elif defined(__GNUC__) && defined(__STRICT_ANSI__)
+/* force use of generic atomics if building e.g. with -std=c89, which
+ * doesn't allow inline asm */
+# define USE_ATOMICS_GENERIC
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
# define USE_ATOMICS_IA32
# define NEED_ATOMICS_GENERIC64