SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

This commit is contained in:
Tim Peters 2001-05-14 22:32:33 +00:00
parent 460f0691df
commit 58e0a8c130
5 changed files with 32 additions and 14 deletions

View file

@ -434,6 +434,15 @@ typedef struct fd_set {
#endif
#endif
/*
* Rename some functions for the Borland compiler
*/
#ifdef __BORLANDC__
# include <io.h>
# define _chsize chsize
# define _setmode setmode
#endif
#ifdef __cplusplus
}
#endif