summaryrefslogtreecommitdiff
path: root/atomic
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-12-31 21:37:33 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-12-31 21:37:33 +0000
commitbf78f35b3f31cd59a5a1ee72deb0a5b73a17bbf1 (patch)
tree2ceaf477f84612fc829f74dc8c6748b1f5013c68 /atomic
parent38aba1050f29310fe8824c54010df55710fc288a (diff)
downloadlibapr-bf78f35b3f31cd59a5a1ee72deb0a5b73a17bbf1.tar.gz
* apr_atomic.c: Remove use of atomic_* from FreeBSD's
machine/atomic.h, these don't return values and aren't usable from userspace on more arches than just i386. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64853 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic')
-rw-r--r--atomic/unix/apr_atomic.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/atomic/unix/apr_atomic.c b/atomic/unix/apr_atomic.c
index 122a2c4d0..161392852 100644
--- a/atomic/unix/apr_atomic.c
+++ b/atomic/unix/apr_atomic.c
@@ -58,36 +58,6 @@
#include <stdlib.h>
-#if defined(__FreeBSD__) && !defined(__i386__) && !APR_FORCE_ATOMIC_GENERIC
-
-#include <machine/atomic.h>
-
-APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val)
-{
- return atomic_add_int(mem, val);
-}
-#define APR_OVERRIDE_ATOMIC_ADD32
-
-APR_DECLARE(int) apr_atomic_dec32(volatile apr_uint32_t *mem)
-{
- return atomic_subtract_int(mem, 1);
-}
-#define APR_OVERRIDE_ATOMIC_DEC32
-
-APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem)
-{
- return atomic_add_int(mem, 1);
-}
-#define APR_OVERRIDE_ATOMIC_INC32
-
-APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val)
-{
- atomic_set_int(mem, val);
-}
-#define APR_OVERRIDE_ATOMIC_SET32
-
-#endif /* __FreeBSD__ && !__i386__ */
-
#if defined(__i386__) && defined(__GNUC__) && !APR_FORCE_ATOMIC_GENERIC
APR_DECLARE(apr_uint32_t) apr_atomic_cas32(volatile apr_uint32_t *mem,