diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-12-15 13:21:08 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-12-15 13:21:08 +0000 |
commit | 3e895c38f1aea1b2f791007ccf4405f34547f4bf (patch) | |
tree | 8f7d759cea7383a9baff3a481ada642ba332eb1e /atomic | |
parent | 70ce9f414eb8e483bb9e51199e51cf468e8b134c (diff) | |
download | libapr-3e895c38f1aea1b2f791007ccf4405f34547f4bf.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: http://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.c | 3 |
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, |