patch 8.1.1306: Borland support is outdated and doesn't work
Problem: Borland support is outdated and doesn't work.
Solution: Remove Borland support, there are other (free) compilers
available. (Thomas Dziedzic, Ken Takata, closes #4364)
diff --git a/src/dosinst.h b/src/dosinst.h
index 7f30e90..7cb4139 100644
--- a/src/dosinst.h
+++ b/src/dosinst.h
@@ -47,11 +47,7 @@
#if defined(UNIX_LINT)
# define vim_mkdir(x, y) mkdir((char *)(x), y)
#else
-# ifndef __BORLANDC__
-# define vim_mkdir(x, y) _mkdir((char *)(x))
-# else
-# define vim_mkdir(x, y) mkdir((char *)(x))
-# endif
+# define vim_mkdir(x, y) _mkdir((char *)(x))
#endif
#define sleep(n) Sleep((n) * 1000)
@@ -150,10 +146,6 @@
#endif
}
-#ifdef __BORLANDC__
-/* Borland defines its own searchpath() in dir.h */
-# include <dir.h>
-#else
static char *
searchpath(char *name)
{
@@ -173,7 +165,6 @@
}
return NULL;
}
-#endif
/*
* Call searchpath() and save the result in allocated memory, or return NULL.
@@ -463,12 +454,6 @@
/*
* Expand the executable name into a full path name.
*/
-#if defined(__BORLANDC__)
-
-/* Only Borland C++ has this. */
-# define my_fullpath(b, n, l) _fullpath(b, n, l)
-
-#else
static char *
my_fullpath(char *buf, char *fname, int len)
{
@@ -478,7 +463,6 @@
return (len_read > 0 && len_read < (DWORD)len) ? buf : NULL;
}
-#endif
/*
* Remove the tail from a file or directory name.