diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-05-14 22:32:33 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-05-14 22:32:33 (GMT) |
commit | 58e0a8c13015627b5cd4abff6563bef02532596c (patch) | |
tree | 7734b82cb756f5a4e534678d6b236b6fb51f5ab5 /Include | |
parent | 460f0691dff8e8f36b325a87f1af25ca6571ddad (diff) | |
download | cpython-58e0a8c13015627b5cd4abff6563bef02532596c.zip cpython-58e0a8c13015627b5cd4abff6563bef02532596c.tar.gz cpython-58e0a8c13015627b5cd4abff6563bef02532596c.tar.bz2 |
SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.
Diffstat (limited to 'Include')
-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 |