summaryrefslogtreecommitdiff
path: root/src/GvimExt/gvimext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/GvimExt/gvimext.h')
-rw-r--r--src/GvimExt/gvimext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/GvimExt/gvimext.h b/src/GvimExt/gvimext.h
index 5eb50048b..d68807320 100644
--- a/src/GvimExt/gvimext.h
+++ b/src/GvimExt/gvimext.h
@@ -33,6 +33,12 @@
#define INC_OLE2 // WIN32, get ole2 from windows.h
+/* Visual Studio 2005 has 'deprecated' many of the standard CRT functions */
+#if _MSC_VER >= 1400
+# define _CRT_SECURE_NO_DEPRECATE
+# define _CRT_NONSTDC_NO_DEPRECATE
+#endif
+
#include <windows.h>
#include <windowsx.h>
#include <shlobj.h>