summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2001-06-27 13:04:24 (GMT)
committerThomas Wouters <thomas@python.org>2001-06-27 13:04:24 (GMT)
commitac4094b31fe037623b020c8350b99fe1844d6b86 (patch)
tree262dfeedea7c1190b1a01eed07076dea56ea6fc9
parent687f228681c4192d1b5a6cb568e50fa6cc995378 (diff)
downloadcpython-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.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