diff options
author | Thomas Wouters <thomas@python.org> | 2001-06-27 13:04:24 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2001-06-27 13:04:24 (GMT) |
commit | ac4094b31fe037623b020c8350b99fe1844d6b86 (patch) | |
tree | 262dfeedea7c1190b1a01eed07076dea56ea6fc9 | |
parent | 687f228681c4192d1b5a6cb568e50fa6cc995378 (diff) | |
download | cpython-ac4094b31fe037623b020c8350b99fe1844d6b86.zip cpython-ac4094b31fe037623b020c8350b99fe1844d6b86.tar.gz cpython-ac4094b31fe037623b020c8350b99fe1844d6b86.tar.bz2 |
Backport of Tim's checkin 2.27:
SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.
-rw-r--r-- | Include/pyport.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 852efb8..2a59fa1 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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 |