updated for version 7.0185
diff --git a/src/os_win32.h b/src/os_win32.h
index b839359..15e6160 100644
--- a/src/os_win32.h
+++ b/src/os_win32.h
@@ -15,6 +15,12 @@
 #include <direct.h>		/* for _mkdir() */
 #endif
 
+/* Stop the VC2005 compiler from nagging. */
+#if _MSC_VER >= 1400
+# define _CRT_SECURE_NO_DEPRECATE
+# define _CRT_NONSTDC_NO_DEPRECATE
+#endif
+
 #define BINARY_FILE_IO
 #define USE_EXE_NAME		/* use argv[0] for $VIM */
 #define SYNC_DUP_CLOSE		/* sync() a file with dup() and close() */