mirror of
https://github.com/python/cpython.git
synced 2026-05-18 10:24:42 -04: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:
+1
-1
@@ -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"
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
+1
-1
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user