[Python-checkins] CVS: python/dist/src/Include pyport.h,2.26,2.26.4.1

Thomas Wouters twouters@users.sourceforge.net
Wed, 27 Jun 2001 06:04:26 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv17628/Include

Modified Files:
      Tag: release21-maint
	pyport.h 
Log Message:

Backport of Tim's checkin 2.27:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.



Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.26
retrieving revision 2.26.4.1
diff -C2 -r2.26 -r2.26.4.1
*** pyport.h	2001/01/22 16:50:11	2.26
--- pyport.h	2001/06/27 13:04:24	2.26.4.1
***************
*** 435,438 ****
--- 435,447 ----
  #endif
  
+ /*
+  * Rename some functions for the Borland compiler
+  */
+ #ifdef __BORLANDC__
+ #  include <io.h>
+ #  define _chsize chsize
+ #  define _setmode setmode
+ #endif
+ 
  #ifdef __cplusplus
  }