summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h9
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