diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-06-10 12:23:46 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-06-10 12:23:46 (GMT) |
commit | 0e8bd7e1ccf7f47bc0bb920af899c77669016d3d (patch) | |
tree | a2724cb3463072f259b31175662d9a03ed02b4c3 /Python | |
parent | acd0d6d4160c6b7f12d80807a4312f6f57338b4d (diff) | |
download | cpython-0e8bd7e1ccf7f47bc0bb920af899c77669016d3d.zip cpython-0e8bd7e1ccf7f47bc0bb920af899c77669016d3d.tar.gz cpython-0e8bd7e1ccf7f47bc0bb920af899c77669016d3d.tar.bz2 |
Patch #1495999: Part two of Windows CE changes.
- update header checks, using autoconf
- provide dummies for getenv, environ, and GetVersion
- adjust MSC_VER check in socketmodule.c
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 | ||||
-rw-r--r-- | Python/dynload_win.c | 2 | ||||
-rw-r--r-- | Python/mystrtoul.c | 2 | ||||
-rw-r--r-- | Python/pythonrun.c | 2 | ||||
-rw-r--r-- | Python/strtod.c | 2 | ||||
-rw-r--r-- | Python/thread_nt.h | 2 |
6 files changed, 9 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 4d20431..e68dbb2 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -205,7 +205,7 @@ PyEval_GetCallStats(PyObject *self) #ifdef WITH_THREAD -#ifndef DONT_HAVE_ERRNO_H +#ifdef HAVE_ERRNO_H #include <errno.h> #endif #include "pythread.h" diff --git a/Python/dynload_win.c b/Python/dynload_win.c index 36746e2..37d6d2e 100644 --- a/Python/dynload_win.c +++ b/Python/dynload_win.c @@ -2,7 +2,9 @@ /* Support for dynamic loading of extension modules */ #include <windows.h> +#ifdef HAVE_DIRECT_H #include <direct.h> +#endif #include <ctype.h> #include "Python.h" diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index 380b37d..1fc360b 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c @@ -17,7 +17,7 @@ #include <ctype.h> -#ifndef DONT_HAVE_ERRNO_H +#ifdef HAVE_ERRNO_H #include <errno.h> #endif diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 3a282e7..7e5c696 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -17,7 +17,9 @@ #include "eval.h" #include "marshal.h" +#ifdef HAVE_SIGNAL_H #include <signal.h> +#endif #ifdef HAVE_LANGINFO_H #include <locale.h> diff --git a/Python/strtod.c b/Python/strtod.c index 7911a94..5c084a4 100644 --- a/Python/strtod.c +++ b/Python/strtod.c @@ -54,7 +54,7 @@ static double HUGE = 1.7976931348623157e308; extern double atof(const char *); /* Only called when result known to be ok */ -#ifndef DONT_HAVE_ERRNO_H +#ifdef HAVE_ERRNO_H #include <errno.h> #endif extern int errno; diff --git a/Python/thread_nt.h b/Python/thread_nt.h index 0b7e84e..4dc6d6c 100644 --- a/Python/thread_nt.h +++ b/Python/thread_nt.h @@ -5,7 +5,9 @@ #include <windows.h> #include <limits.h> +#ifdef HAVE_PROCESS_H #include <process.h> +#endif typedef struct NRMUTEX { LONG owned ; |