[Python-checkins] CVS: python/dist/src/Include pyport.h,2.23,2.24
Tim Peters
tim_one@users.sourceforge.net
Wed, 17 Jan 2001 19:03:18 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test string_tests.py,1.4,1.5 test_charmapcodec.py,1.3,1.4 test_crypt.py,1.5,1.6 test_format.py,1.7,1.8 test_sax.py,1.15,1.16 test_support.py,1.10,1.11 test_unicode.py,1.27,1.28 test_xreadline.py,1.2,1.3 testcodec.py,1.1,1.2
- Next message: [Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.107,2.108
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv13775/python/dist/src/Include
Modified Files:
pyport.h
Log Message:
Move distributed and duplicated config for stat() and fstat() into pyport.h.
Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -r2.23 -r2.24
*** pyport.h 2001/01/12 15:06:28 2.23
--- pyport.h 2001/01/18 03:03:16 2.24
***************
*** 119,123 ****
--- 119,155 ----
#endif /* !HAVE_SYS_SELECT_H */
+ /*******************************
+ * stat() and fstat() fiddling *
+ *******************************/
+
+ /* We expect that stat and fstat exist on most systems.
+ * It's confirmed on Unix, Mac and Windows.
+ * If you don't have them, add
+ * #define DONT_HAVE_STAT
+ * and/or
+ * #define DONT_HAVE_FSTAT
+ * to your config.h. Python code beyond this should check HAVE_STAT and
+ * HAVE_FSTAT instead.
+ * Also
+ * #define DONT_HAVE_SYS_STAT_H
+ * if <sys/stat.h> doesn't exist on your platform, and
+ * #define HAVE_STAT_H
+ * if <stat.h> does (don't look at me -- ths mess is inherited).
+ */
+ #ifndef DONT_HAVE_STAT
+ #define HAVE_STAT
+ #endif
+
+ #ifndef DONT_HAVE_FSTAT
+ #define HAVE_FSTAT
+ #endif
+ #ifndef DONT_HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #elif defined(HAVE_STAT_H)
+ #include <stat.h>
+ #endif
+
+
#ifdef __cplusplus
/* Move this down here since some C++ #include's don't like to be included
***************
*** 193,197 ****
/* Unchecked */
/* It's in the libs, but not the headers... - [cjh] */
! int shutdown( int, int );
#endif
--- 225,229 ----
/* Unchecked */
/* It's in the libs, but not the headers... - [cjh] */
! int shutdown( int, int );
#endif
***************
*** 306,310 ****
#define tan tand
#define tanh tanhd
! #endif
--- 338,342 ----
#define tan tand
#define tanh tanhd
! #endif
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test string_tests.py,1.4,1.5 test_charmapcodec.py,1.3,1.4 test_crypt.py,1.5,1.6 test_format.py,1.7,1.8 test_sax.py,1.15,1.16 test_support.py,1.10,1.11 test_unicode.py,1.27,1.28 test_xreadline.py,1.2,1.3 testcodec.py,1.1,1.2
- Next message: [Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.107,2.108
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]