diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-09 15:12:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-09 15:12:55 +0200 |
commit | eae1b91fea74842000fc055afc74fe2e7934c6ee (patch) | |
tree | 71fe047a88c21932a4c919c47b5d19847ee65471 /src/dosinst.h | |
parent | 691ddeefb545d8488e5a495af61caba2e57b3de9 (diff) |
patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306
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)
Diffstat (limited to 'src/dosinst.h')
-rw-r--r-- | src/dosinst.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/dosinst.h b/src/dosinst.h index 7f30e90f4b..7cb4139a09 100644 --- a/src/dosinst.h +++ b/src/dosinst.h @@ -47,11 +47,7 @@ char *searchpath(char *name); #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 @@ is_64bit_os(void) #endif } -#ifdef __BORLANDC__ -/* Borland defines its own searchpath() in dir.h */ -# include <dir.h> -#else static char * searchpath(char *name) { @@ -173,7 +165,6 @@ searchpath(char *name) } return NULL; } -#endif /* * Call searchpath() and save the result in allocated memory, or return NULL. @@ -463,12 +454,6 @@ mch_chdir(char *path) /* * 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 @@ my_fullpath(char *buf, char *fname, int len) return (len_read > 0 && len_read < (DWORD)len) ? buf : NULL; } -#endif /* * Remove the tail from a file or directory name. |