From: Igor Sysoev Date: Sat, 5 May 2007 05:50:41 +0000 (+0000) Subject: fix building by owc12 X-Git-Tag: release-0.5.20~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=875893b846a11908de51ed12ebcffb837115fdcd;p=nginx.git fix building by owc12 --- diff --git a/src/os/win32/ngx_atomic.h b/src/os/win32/ngx_atomic.h index 5e32f1f33..dc761a896 100644 --- a/src/os/win32/ngx_atomic.h +++ b/src/os/win32/ngx_atomic.h @@ -45,7 +45,13 @@ typedef volatile ngx_atomic_uint_t ngx_atomic_t; #define ngx_memory_barrier() -#ifdef __BORLANDC__ +#if defined( __BORLANDC__ ) || ( __WATCOMC__ < 1230 ) + +/* + * Borland C++ 5.5 (tasm32) and Open Watcom C prior to 1.3 + * do not understand the "pause" instruction + */ + #define ngx_cpu_pause() #else #define ngx_cpu_pause() __asm { pause }