apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/include apr_atomic.h
Date Sat, 16 Feb 2002 18:34:54 GMT
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 <asm/atomic.h>
   #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
  
  
  

Mime
View raw message