[Python-checkins] CVS: python/dist/src/Include osdefs.h,2.14,2.15 pyport.h,2.42,2.43

Andrew I MacIntyre aimacintyre@users.sourceforge.net
Tue, 26 Feb 2002 03:20:04 -0800


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

Modified Files:
	osdefs.h pyport.h 
Log Message:
OS/2 EMX port changes (Include part of patch #450267):
  Include/
    osdefs.h  // EMX promotes Un*x path separators
    pyport.h


Index: osdefs.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/osdefs.h,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -d -r2.14 -r2.15
*** osdefs.h	2 Mar 2001 06:10:17 -0000	2.14
--- osdefs.h	26 Feb 2002 11:20:01 -0000	2.15
***************
*** 18,24 ****
--- 18,30 ----
  #if !defined(__QNX__)
  #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
+ #if defined(PYOS_OS2) && defined(PYCC_GCC)
+ #define MAXPATHLEN 260
+ #define SEP '/'
+ #define ALTSEP '\\'
+ #else
  #define SEP '\\'
  #define ALTSEP '/'
  #define MAXPATHLEN 256
+ #endif
  #define DELIM ';'
  #endif

Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -C2 -d -r2.42 -r2.43
*** pyport.h	1 Feb 2002 15:46:29 -0000	2.42
--- pyport.h	26 Feb 2002 11:20:01 -0000	2.43
***************
*** 158,161 ****
--- 158,164 ----
  
  #ifndef DONT_HAVE_SYS_STAT_H
+ #if defined(PYOS_OS2) && defined(PYCC_GCC)
+ #include <sys/types.h>
+ #endif
  #include <sys/stat.h>
  #elif defined(HAVE_STAT_H)