From: Guido van Rossum Date: Wed, 7 Apr 1999 16:07:23 +0000 (+0000) Subject: Changes by Mark Hammond for Windows CE. Mostly of the form X-Git-Tag: v1.5.2c1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2571cc8bf50a9e08bc45116ee7f39de78139a6ca;p=thirdparty%2FPython%2Fcpython.git Changes by Mark Hammond for Windows CE. Mostly of the form #ifdef DONT_HAVE_header_H ... #endif around #include . --- diff --git a/Python/ceval.c b/Python/ceval.c index ef5bced21195..621839790fb6 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -108,7 +108,9 @@ static long dxp[256]; #ifdef WITH_THREAD +#ifndef DONT_HAVE_ERRNO_H #include +#endif #include "pythread.h" extern int _PyThread_Started; /* Flag for Py_Exit */ diff --git a/Python/import.c b/Python/import.c index 936cbda06dd4..851fd069306a 100644 --- a/Python/import.c +++ b/Python/import.c @@ -55,8 +55,12 @@ PERFORMANCE OF THIS SOFTWARE. #ifndef DONT_HAVE_STAT #define HAVE_STAT +#ifndef DONT_HAVE_SYS_TYPES_H #include +#endif +#ifndef DONT_HAVE_SYS_STAT_H #include +#endif #if defined(PYCC_VACPP) /* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */ diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index b5ea751068be..ac70e44ba713 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c @@ -60,7 +60,9 @@ PERFORMANCE OF THIS SOFTWARE. */ #include +#ifndef DONT_HAVE_ERRNO_H #include +#endif unsigned long PyOS_strtoul(str, ptr, base) diff --git a/Python/strtod.c b/Python/strtod.c index 1c475e5ca350..a0991d5c687e 100644 --- a/Python/strtod.c +++ b/Python/strtod.c @@ -54,7 +54,9 @@ static double HUGE = 1.7976931348623157e308; extern double atof(); /* Only called when result known to be ok */ +#ifndef DONT_HAVE_ERRNO_H #include +#endif extern int errno; double strtod(str, ptr) diff --git a/Python/thread.c b/Python/thread.c index c533398a3cdf..0f46223499cc 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -42,13 +42,17 @@ PERFORMANCE OF THIS SOFTWARE. #define DL_IMPORT(RTYPE) RTYPE #endif +#ifndef DONT_HAVE_STDIO_H #include +#endif #ifdef HAVE_STDLIB_H #include #else +#ifdef Py_DEBUG extern char *getenv(); #endif +#endif #ifdef HAVE_UNISTD_H #include @@ -162,6 +166,10 @@ void PyThread_init_thread _P0() #include "thread_beos.h" #endif +#ifdef WINCE_THREADS +#include "thread_wince.h" +#endif + /* #ifdef FOOBAR_THREADS #include "thread_foobar.h"