commit | 875893b846a11908de51ed12ebcffb837115fdcd | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Sat May 05 05:50:41 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Sat May 05 05:50:41 2007 +0000 |
tree | 71bbd44bb76cf7abada813fccad5df3a5fe593ac | |
parent | d1e38e8788873df130a07690c809803cfcab8bdd [diff] |
fix building by owc12
diff --git a/src/os/win32/ngx_atomic.h b/src/os/win32/ngx_atomic.h index 5e32f1f..dc761a8 100644 --- a/src/os/win32/ngx_atomic.h +++ b/src/os/win32/ngx_atomic.h
@@ -45,7 +45,13 @@ #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 }