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
This commit is contained in:
Martin v. Löwis 2006-06-10 12:23:46 +00:00
parent acd0d6d416
commit 0e8bd7e1cc
26 changed files with 201 additions and 33 deletions

View file

@ -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"

View file

@ -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"

View file

@ -17,7 +17,7 @@
#include <ctype.h>
#ifndef DONT_HAVE_ERRNO_H
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif

View file

@ -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>

View file

@ -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;

View file

@ -5,7 +5,9 @@
#include <windows.h>
#include <limits.h>
#ifdef HAVE_PROCESS_H
#include <process.h>
#endif
typedef struct NRMUTEX {
LONG owned ;