Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 52770 invoked by uid 500); 16 Feb 2002 18:34:55 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 52749 invoked from network); 16 Feb 2002 18:34:55 -0000 Date: 16 Feb 2002 18:34:54 -0000 Message-ID: <20020216183454.54236.qmail@icarus.apache.org> From: wrowe@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/include apr_atomic.h X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N wrowe 02/02/16 10:34:54 Modified: include apr_atomic.h Log: Just for clarity Revision Changes Path 1.4 +6 -3 apr/include/apr_atomic.h Index: apr_atomic.h =================================================================== RCS file: /home/cvs/apr/include/apr_atomic.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- apr_atomic.h 16 Feb 2002 16:34:32 -0000 1.3 +++ apr_atomic.h 16 Feb 2002 18:34:54 -0000 1.4 @@ -62,7 +62,9 @@ #ifdef __cplusplus extern "C" { #endif + #ifdef WIN32 + #define apr_atomic_t LONG; #define apr_atomic_add(mem, val) InterlockedExchangeAdd(mem,val) @@ -74,6 +76,7 @@ #define apr_atomic_init(pool) APR_SUCCESS #elif defined(__linux) + #include #define apr_atomic_t atomic_t @@ -84,8 +87,7 @@ #define apr_atomic_read(mem) atomic_read(mem) #define apr_atomic_init(pool) APR_SUCCESS - -#else +#else /* !defined(WIN32) && !defined(__linux) */ #if APR_HAS_THREADS @@ -100,7 +102,8 @@ #endif /* APR_HAS_THREADS */ -#endif +#endif /* !defined(WIN32) && !defined(__linux) */ + #ifdef __cplusplus } #endif