aboutsummaryrefslogtreecommitdiff
path: root/devel/apr1/files/patch-apr_atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/apr1/files/patch-apr_atomic.h')
-rw-r--r--devel/apr1/files/patch-apr_atomic.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/devel/apr1/files/patch-apr_atomic.h b/devel/apr1/files/patch-apr_atomic.h
deleted file mode 100644
index c4e031f3ffd5..000000000000
--- a/devel/apr1/files/patch-apr_atomic.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- apr-0.9.4/include/apr_atomic.h.orig Sun Nov 2 01:57:08 2003
-+++ apr-0.9.4/include/apr_atomic.h Sun Nov 2 02:20:37 2003
-@@ -206,10 +206,16 @@
-
- #define apr_atomic_t apr_uint32_t
- #define apr_atomic_add(mem, val) atomic_add_int(mem,val)
--#define apr_atomic_dec(mem) atomic_subtract_int(mem,1)
- #define apr_atomic_inc(mem) atomic_add_int(mem,1)
- #define apr_atomic_set(mem, val) atomic_set_int(mem, val)
- #define apr_atomic_read(mem) (*mem)
-+
-+#define apr_atomic_dec(mem) \
-+({ \
-+ atomic_subtract_int(mem,1); \
-+ *(int *)mem; \
-+ })
-+
-
- #elif (defined(__linux__) || defined(__EMX__)) && defined(__i386__) && !APR_FORCE_ATOMIC_GENERIC
-