summaryrefslogtreecommitdiff
path: root/src/dosinst.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-07 15:14:03 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-07 15:14:03 +0200
commitab8205e8b85d33816a1977d3a70bc3205fca2b9a (patch)
tree1a1eede8d3e948259c2a529ecb2a7cb1958ea4ca /src/dosinst.h
parentccd9ccfa59a3b4622df4eef2e59d1c1ad503bf07 (diff)
downloadvim-git-ab8205e8b85d33816a1977d3a70bc3205fca2b9a.tar.gz
Make the dos installer work with more compilers.
Diffstat (limited to 'src/dosinst.h')
-rw-r--r--src/dosinst.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dosinst.h b/src/dosinst.h
index 605312936..86e65e9a9 100644
--- a/src/dosinst.h
+++ b/src/dosinst.h
@@ -62,6 +62,11 @@ char *searchpath(char *name);
# define vim_mkdir(x, y) mkdir((char *)(x))
# endif
#endif
+
+#ifndef DJGPP
+# define sleep(n) Sleep((n) * 1000)
+#endif
+
/* ---------------------------------------- */
@@ -395,9 +400,10 @@ char *(icon_link_names[ICON_COUNT]) =
"gVim Easy " VIM_VERSION_SHORT ".lnk",
"gVim Read only " VIM_VERSION_SHORT ".lnk"};
-/* This is only used for dosinst.c and for uninstal.c when not being able to
- * directly access registry entries. */
-#if !defined(WIN3264) || defined(DOSINST)
+/* This is only used for dosinst.c when WIN3264 is defined and for uninstal.c
+ * when not being able to directly access registry entries. */
+#if (defined(DOSINST) && defined(WIN3264)) \
+ || (!defined(DOSINST) && !defined(WIN3264))
/*
* Run an external command and wait for it to finish.
*/