From ac4094b31fe037623b020c8350b99fe1844d6b86 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Wed, 27 Jun 2001 13:04:24 +0000 Subject: Backport of Tim's checkin 2.27: SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen. --- Include/pyport.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +# define _chsize chsize +# define _setmode setmode +#endif + #ifdef __cplusplus } #endif -- cgit v0.12