mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
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:
parent
acd0d6d416
commit
0e8bd7e1cc
26 changed files with 201 additions and 33 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
|
||||
#include <ctype.h>
|
||||
#ifndef DONT_HAVE_ERRNO_H
|
||||
#ifdef HAVE_ERRNO_H
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
|
||||
#include <windows.h>
|
||||
#include <limits.h>
|
||||
#ifdef HAVE_PROCESS_H
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
typedef struct NRMUTEX {
|
||||
LONG owned ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue