apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/atomic/unix apr_atomic.c
Date Mon, 13 Sep 2004 11:21:03 GMT
jorton      2004/09/13 04:21:03

  Modified:    atomic/unix apr_atomic.c
  Log:
  * atomic/unix/apr_atomic.c: Force use of generic atomics if gcc
  defines __STRICT_ANSI__ (e.g. with -std=c89), since inline asm is not
  supported in that case.
  
  Revision  Changes    Path
  1.46      +6 -0      apr/atomic/unix/apr_atomic.c
  
  Index: apr_atomic.c
  ===================================================================
  RCS file: /home/cvs/apr/atomic/unix/apr_atomic.c,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -d -w -u -r1.45 -r1.46
  --- apr_atomic.c	13 Feb 2004 09:38:23 -0000	1.45
  +++ apr_atomic.c	13 Sep 2004 11:21:03 -0000	1.46
  @@ -21,6 +21,12 @@
   
   #include <stdlib.h>
   
  +#if defined(__GNUC__) && defined(__STRICT_ANSI__) && !defined(USE_GENERIC_ATOMICS)
  +/* force use of generic atomics if building e.g. with -std=c89, which
  + * doesn't allow inline asm */
  +#define USE_GENERIC_ATOMICS
  +#endif
  +
   #if (defined(__i386__) || defined(__x86_64__)) \
       && defined(__GNUC__) && !defined(USE_GENERIC_ATOMICS)
   
  
  
  

Mime
View raw message