From 2571cc8bf50a9e08bc45116ee7f39de78139a6ca Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 7 Apr 1999 16:07:23 +0000 Subject: Changes by Mark Hammond for Windows CE. Mostly of the form #ifdef DONT_HAVE_header_H ... #endif around #include . --- Python/ceval.c | 2 ++ Python/import.c | 4 ++++ Python/mystrtoul.c | 2 ++ Python/strtod.c | 2 ++ Python/thread.c | 8 ++++++++ 5 files changed, 18 insertions(+) diff --git a/Python/ceval.c b/Python/ceval.c index ef5bced..6218397 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 936cbda..851fd06 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 b5ea751..ac70e44 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 1c475e5..a0991d5 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 c533398..0f46223 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" -- cgit v0.12