summaryrefslogtreecommitdiff
path: root/src/xxd
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-06 23:29:24 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-06 23:29:24 +0000
commit362e1a30c6f3527d5d0efc328c2fb448290cd6fc (patch)
tree91c408352947bec09aee2032949ef1acef606d15 /src/xxd
parent768b8c4dbcb3cdaccab87daa833ab176a438cc3c (diff)
downloadvim-git-362e1a30c6f3527d5d0efc328c2fb448290cd6fc.tar.gz
updated for version 7.0216v7.0216
Diffstat (limited to 'src/xxd')
-rw-r--r--src/xxd/Make_mvc.mak5
-rw-r--r--src/xxd/xxd.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/src/xxd/Make_mvc.mak b/src/xxd/Make_mvc.mak
index 0c9438aa1..3227f0c86 100644
--- a/src/xxd/Make_mvc.mak
+++ b/src/xxd/Make_mvc.mak
@@ -4,7 +4,10 @@
xxd: xxd.exe
xxd.exe: xxd.c
- cl /nologo -DWIN32 xxd.c /link setargv.obj
+ cl /nologo -DWIN32 xxd.c
+
+# This was for an older compiler
+# cl /nologo -DWIN32 xxd.c /link setargv.obj
clean:
- if exist xxd.obj del xxd.obj
diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c
index 2b553dd6b..2b3ee9c03 100644
--- a/src/xxd/xxd.c
+++ b/src/xxd/xxd.c
@@ -58,6 +58,13 @@
* make money and share with me,
* lose money and don't ask me.
*/
+
+/* 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 <stdio.h>
#ifdef VAXC
# include <file.h>