trawick 2003/12/15 05:21:08
Modified: atomic/unix apr_atomic.c
Log:
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
Revision Changes Path
1.40 +1 -2 apr/atomic/unix/apr_atomic.c
Index: apr_atomic.c
===================================================================
RCS file: /home/cvs/apr/atomic/unix/apr_atomic.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- apr_atomic.c 12 Dec 2003 17:47:23 -0000 1.39
+++ apr_atomic.c 15 Dec 2003 13:21:08 -0000 1.40
@@ -88,8 +88,7 @@
#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,