comparison src/xxd/xxd.c @ 16606:7e733046db1d v8.1.1306

patch 8.1.1306: Borland support is outdated and doesn't work commit https://github.com/vim/vim/commit/eae1b91fea74842000fc055afc74fe2e7934c6ee Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 9 15:12:55 2019 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 May 2019 15:15:07 +0200
parents 2d8fa45b341d
children 2ef19eed524a
comparison
equal deleted inserted replaced
16605:50115650f6c7 16606:7e733046db1d
79 #ifdef VAXC 79 #ifdef VAXC
80 # include <file.h> 80 # include <file.h>
81 #else 81 #else
82 # include <fcntl.h> 82 # include <fcntl.h>
83 #endif 83 #endif
84 #if defined(WIN32) || defined(__BORLANDC__) || defined(CYGWIN) 84 #if defined(WIN32) || defined(CYGWIN)
85 # include <io.h> /* for setmode() */ 85 # include <io.h> /* for setmode() */
86 #else 86 #else
87 # ifdef UNIX 87 # ifdef UNIX
88 # include <unistd.h> 88 # include <unistd.h>
89 # endif 89 # endif
92 #include <string.h> /* for strncmp() */ 92 #include <string.h> /* for strncmp() */
93 #include <ctype.h> /* for isalnum() */ 93 #include <ctype.h> /* for isalnum() */
94 #include <limits.h> 94 #include <limits.h>
95 #if __MWERKS__ && !defined(BEBOX) 95 #if __MWERKS__ && !defined(BEBOX)
96 # include <unix.h> /* for fdopen() on MAC */ 96 # include <unix.h> /* for fdopen() on MAC */
97 #endif
98
99 #if defined(__BORLANDC__) && __BORLANDC__ <= 0x0410 && !defined(fileno)
100 /* Missing define and prototype grabbed from the BC 4.0 <stdio.h> */
101 # define fileno(f) ((f)->fd)
102 FILE _FAR *_Cdecl _FARFUNC fdopen(int __handle, char _FAR *__type);
103 #endif 97 #endif
104 98
105 99
106 /* This corrects the problem of missing prototypes for certain functions 100 /* This corrects the problem of missing prototypes for certain functions
107 * in some GNU installations (e.g. SunOS 4.1.x). 101 * in some GNU installations (e.g. SunOS 4.1.x).
188 #else 182 #else
189 # define STRNCMP(s1, s2, l) strncmp(s1, s2, l) 183 # define STRNCMP(s1, s2, l) strncmp(s1, s2, l)
190 #endif 184 #endif
191 185
192 #ifndef __P 186 #ifndef __P
193 # if defined(__STDC__) || defined(WIN32) || defined(__BORLANDC__) 187 # if defined(__STDC__) || defined(WIN32)
194 # define __P(a) a 188 # define __P(a) a
195 # else 189 # else
196 # define __P(a) () 190 # define __P(a) ()
197 # endif 191 # endif
198 #endif 192 #endif