summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-14 22:32:33 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-05-14 22:32:33 (GMT)
commit58e0a8c13015627b5cd4abff6563bef02532596c (patch)
tree7734b82cb756f5a4e534678d6b236b6fb51f5ab5 /Include/pyport.h
parent460f0691dff8e8f36b325a87f1af25ca6571ddad (diff)
downloadcpython-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/pyport.h')
-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