summaryrefslogtreecommitdiff
path: root/atomic
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2003-12-15 13:21:08 +0000
committerJeff Trawick <trawick@apache.org>2003-12-15 13:21:08 +0000
commit75b4bbf8fead6d79eea2e2c857134c45d87d1ff4 (patch)
tree8f7d759cea7383a9baff3a481ada642ba332eb1e /atomic
parent00f8a17801b35d0e34beb7dc83fc0f383046dd16 (diff)
downloadapr-75b4bbf8fead6d79eea2e2c857134c45d87d1ff4.tar.gz
enable i386 atomics for gcc on any platform...
it is expected that there are relatively few (or zero) platforms where it would be used where it won't work git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64837 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic')
-rw-r--r--atomic/unix/apr_atomic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/atomic/unix/apr_atomic.c b/atomic/unix/apr_atomic.c
index a6d55378c..67a6bb0aa 100644
--- a/atomic/unix/apr_atomic.c
+++ b/atomic/unix/apr_atomic.c
@@ -88,8 +88,7 @@ APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val)
#endif /* __FreeBSD__ && !__i386__ */
-#if (defined(__linux__) || defined(__sun__) || defined(__EMX__) || defined(__FreeBSD__)) \
- && defined(__i386__) && !APR_FORCE_ATOMIC_GENERIC
+#if defined(__i386__) && defined(__GNUC__) && !APR_FORCE_ATOMIC_GENERIC
APR_DECLARE(apr_uint32_t) apr_atomic_cas32(volatile apr_uint32_t *mem,
apr_uint32_t with,