[Python-checkins] CVS: python/dist/src/Include pyport.h,2.30,2.31
Martin v. L?wis
loewis@users.sourceforge.net
2001年8月08日 03:28:08 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv31287/Include
Modified Files:
pyport.h
Log Message:
Put conditional S_ISDIR definition(s) into pyport.h.
Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.30
retrieving revision 2.31
diff -C2 -d -r2.30 -r2.31
*** pyport.h 2001年08月07日 15:32:30 2.30
--- pyport.h 2001年08月08日 10:28:06 2.31
***************
*** 151,154 ****
--- 151,167 ----
#endif
+ #if defined(PYCC_VACPP)
+ /* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */
+ #define S_IFMT (S_IFDIR|S_IFCHR|S_IFREG)
+ #endif
+
+ #ifndef S_ISREG
+ #define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
+ #endif
+
+ #ifndef S_ISDIR
+ #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
+ #endif
+
#ifdef __cplusplus