aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache20/files/patch-srclib:apr:include:apr_atomic.h
blob: 14d1dd444ba389600d1a7626822f145d3db36465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- srclib/apr/include/apr_atomic.h.orig    Wed May  1 03:41:59 2002
+++ srclib/apr/include/apr_atomic.h Tue May  7 19:37:45 2002
@@ -175,10 +175,10 @@
 #include <machine/atomic.h>
 
 #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_add(mem, val)     (atomic_add_int(mem,val),mem)
+#define apr_atomic_dec(mem)          (atomic_subtract_int(mem,1),mem)
+#define apr_atomic_inc(mem)          (atomic_add_int(mem,1),mem)
+#define apr_atomic_set(mem, val)     (atomic_set_int(mem, val),mem)
 #define apr_atomic_read(mem)         (*mem)
 
 #define APR_ATOMIC_NEED_CAS_DEFAULT 1