comparison src/os/unix/ngx_atomic.h @ 2133:c505e2712e13

fix conflicting names "true" and "false"
author Igor Sysoev <igor@sysoev.ru>
date Thu, 31 Jul 2008 07:55:46 +0000
parents 08c6ee7a1b11
children 7658e9c7e814
comparison
equal deleted inserted replaced
2132:6a0eb17fa027 2133:c505e2712e13
19 * optimized at run-time for UP and SMP 19 * optimized at run-time for UP and SMP
20 */ 20 */
21 21
22 #include <libkern/OSAtomic.h> 22 #include <libkern/OSAtomic.h>
23 23
24 /* "bool" conflicts with perl's CORE/handy.h 24 /* "bool" conflicts with perl's CORE/handy.h */
25 * "true" and "false" conflict with nginx, and of course we can rename them,
26 * but we need to undef "bool" anyway
27 */
28 #undef bool 25 #undef bool
29 #undef true
30 #undef false
31 26
32 27
33 #define NGX_HAVE_ATOMIC_OPS 1 28 #define NGX_HAVE_ATOMIC_OPS 1
34 29
35 #if (NGX_PTR_SIZE == 8) 30 #if (NGX_PTR_SIZE == 8)