]> git.kaiwu.me - nginx.git/commitdiff
fix building by owc12
authorIgor Sysoev <igor@sysoev.ru>
Sat, 5 May 2007 05:50:41 +0000 (05:50 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 5 May 2007 05:50:41 +0000 (05:50 +0000)
src/os/win32/ngx_atomic.h

index 5e32f1f33da9395d42375540175da0617ab6a8ff..dc761a89600d0f42de1684800d51c7862a34f22a 100644 (file)
@@ -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 }