Patch by Mark Hammond to avoid certain header files on Windows/CE.

This commit is contained in:
Guido van Rossum 1999-08-27 20:39:37 +00:00
parent 7f1de832a2
commit ff7e83d606
3 changed files with 15 additions and 2 deletions

View File

@ -4,7 +4,9 @@
#include "macbuildno.h"
#endif
#ifndef DONT_HAVE_STDIO_H
#include <stdio.h>
#endif
#ifndef DATE
#ifdef __DATE__

View File

@ -48,7 +48,9 @@ PERFORMANCE OF THIS SOFTWARE.
extern void bzero();
#endif
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if defined(PYOS_OS2)
#include <sys/time.h>

View File

@ -34,7 +34,9 @@ PERFORMANCE OF THIS SOFTWARE.
#include "Python.h"
#include "structmember.h"
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* DONT_HAVE_SYS_TYPES_H */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@ -62,7 +64,9 @@ PERFORMANCE OF THIS SOFTWARE.
#define BUF(v) PyString_AS_STRING((PyStringObject *)v)
#ifndef DONT_HAVE_ERRNO_H
#include <errno.h>
#endif
typedef struct {
PyObject_HEAD
@ -441,11 +445,16 @@ file_isatty(f, args)
#ifndef DONT_HAVE_FSTAT
#define HAVE_FSTAT
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <sys/stat.h>
#endif
#ifndef DONT_HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#endif /* DONT_HAVE_FSTAT */
#if BUFSIZ < 8192
#define SMALLCHUNK 8192
#else