[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.73,2.74

Guido van Rossum python-dev@python.org
Wed, 28 Jun 2000 13:57:09 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv28642/Objects

Modified Files:
	fileobject.c 
Log Message:
Jack Jansen: Moved includes to the top, removed think C support

Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.73
retrieving revision 2.74
diff -C2 -r2.73 -r2.74
*** fileobject.c	2000/05/03 23:44:34	2.73
--- fileobject.c	2000/06/28 20:57:07	2.74
***************
*** 39,42 ****
--- 39,62 ----
  #endif /* DONT_HAVE_SYS_TYPES_H */
  
+ /* We expect that fstat exists on most systems.
+    It's confirmed on Unix, Mac and Windows.
+    If you don't have it, add #define DONT_HAVE_FSTAT to your config.h. */
+ #ifndef DONT_HAVE_FSTAT
+ #define HAVE_FSTAT
+ 
+ #ifndef DONT_HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
+ 
+ #ifndef DONT_HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #else
+ #ifdef HAVE_STAT_H
+ #include <stat.h>
+ #endif
+ #endif
+ 
+ #endif /* DONT_HAVE_FSTAT */
+ 
  #ifdef HAVE_UNISTD_H
  #include <unistd.h>
***************
*** 55,61 ****
  #endif
  
- #ifdef THINK_C
- #define HAVE_FOPENRF
- #endif
  #ifdef __MWERKS__
  /* Mwerks fopen() doesn't always set errno */
--- 75,78 ----
***************
*** 446,464 ****
  }
  
- /* We expect that fstat exists on most systems.
-    It's confirmed on Unix, Mac and Windows.
-    If you don't have it, add #define DONT_HAVE_FSTAT to your config.h. */
- #ifndef DONT_HAVE_FSTAT
- #define HAVE_FSTAT
- 
- #ifndef DONT_HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- 
- #ifndef DONT_HAVE_SYS_STAT_H
- #include <sys/stat.h>
- #endif
- 
- #endif /* DONT_HAVE_FSTAT */
  
  #if BUFSIZ < 8192
--- 463,466 ----