]> git.kaiwu.me - nginx.git/commitdiff
Win32: fixed build with Visual Studio 2005 Express.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 2 Aug 2012 12:53:07 +0000 (12:53 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 2 Aug 2012 12:53:07 +0000 (12:53 +0000)
It is available via winetricks which makes it still usable, and has
an old crtdefs.h which uses _CRT_SECURE_NO_DEPRECATE instead of
_CRT_SECURE_NO_WARNINGS to suppress warnings.

Reported by HAYASHI Kentaro,
http://mailman.nginx.org/pipermail/nginx-devel/2012-August/002542.html

src/os/win32/ngx_win32_config.h

index 112fb412ac37ae02b30bd1aa9d4589b70859d771..eb3a95a3daee8132a62e95ec469bafc62aa52f72 100644 (file)
@@ -18,6 +18,7 @@
 
 /* enable getenv() and gmtime() in msvc8 */
 #define _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_DEPRECATE
 
 /*
  * we need to include <windows.h> explicitly before <winsock2.h> because