wrowe 2003/09/19 14:57:23
Modified: include apr_atomic.h
Log:
Enable use of atomics from MSVC C++ on WIN32.
Submitted by: Mladen Turk
Reviewed by: William Rowe
Revision Changes Path
1.53 +1 -1 apr/include/apr_atomic.h
Index: apr_atomic.h
===================================================================
RCS file: /home/cvs/apr/include/apr_atomic.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- apr_atomic.h 14 Sep 2003 02:56:52 -0000 1.52
+++ apr_atomic.h 19 Sep 2003 21:57:23 -0000 1.53
@@ -164,7 +164,7 @@
#if defined(WIN32)
-typedef LONG apr_atomic_t;
+#define apr_atomic_t LONG
#define apr_atomic_add(mem, val) InterlockedExchangeAdd(mem,val)
#define apr_atomic_dec(mem) InterlockedDecrement(mem)