]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of Tim's checkin 2.27:
authorThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 13:04:24 +0000 (13:04 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 13:04:24 +0000 (13:04 +0000)
SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

Include/pyport.h

index 852efb894fabf82aa703dac9a4fb2829afcca300..2a59fa1fbf3ef4c9da9cd55edb3b82905de8131c 100644 (file)
@@ -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