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

Tim Peters tim_one@users.sourceforge.net
Mon, 14 May 2001 15:32:35 -0700


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

Modified Files:
	pyport.h 
Log Message:
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.27
diff -C2 -r2.26 -r2.27
*** pyport.h	2001/01/22 16:50:11	2.26
--- pyport.h	2001/05/14 22:32:33	2.27
***************
*** 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
  }