Changes by Mark Hammond for Windows CE. Mostly of the form
#ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.
This commit is contained in:
parent
99fb7c70f4
commit
2571cc8bf5
|
@ -108,7 +108,9 @@ static long dxp[256];
|
||||||
|
|
||||||
#ifdef WITH_THREAD
|
#ifdef WITH_THREAD
|
||||||
|
|
||||||
|
#ifndef DONT_HAVE_ERRNO_H
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#endif
|
||||||
#include "pythread.h"
|
#include "pythread.h"
|
||||||
|
|
||||||
extern int _PyThread_Started; /* Flag for Py_Exit */
|
extern int _PyThread_Started; /* Flag for Py_Exit */
|
||||||
|
|
|
@ -55,8 +55,12 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
#ifndef DONT_HAVE_STAT
|
#ifndef DONT_HAVE_STAT
|
||||||
#define HAVE_STAT
|
#define HAVE_STAT
|
||||||
|
|
||||||
|
#ifndef DONT_HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
#ifndef DONT_HAVE_SYS_STAT_H
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(PYCC_VACPP)
|
#if defined(PYCC_VACPP)
|
||||||
/* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */
|
/* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */
|
||||||
|
|
|
@ -60,7 +60,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#ifndef DONT_HAVE_ERRNO_H
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned long
|
unsigned long
|
||||||
PyOS_strtoul(str, ptr, base)
|
PyOS_strtoul(str, ptr, base)
|
||||||
|
|
|
@ -54,7 +54,9 @@ static double HUGE = 1.7976931348623157e308;
|
||||||
|
|
||||||
extern double atof(); /* Only called when result known to be ok */
|
extern double atof(); /* Only called when result known to be ok */
|
||||||
|
|
||||||
|
#ifndef DONT_HAVE_ERRNO_H
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#endif
|
||||||
extern int errno;
|
extern int errno;
|
||||||
|
|
||||||
double strtod(str, ptr)
|
double strtod(str, ptr)
|
||||||
|
|
|
@ -42,13 +42,17 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
#define DL_IMPORT(RTYPE) RTYPE
|
#define DL_IMPORT(RTYPE) RTYPE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef DONT_HAVE_STDIO_H
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STDLIB_H
|
#ifdef HAVE_STDLIB_H
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#else
|
#else
|
||||||
|
#ifdef Py_DEBUG
|
||||||
extern char *getenv();
|
extern char *getenv();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -162,6 +166,10 @@ void PyThread_init_thread _P0()
|
||||||
#include "thread_beos.h"
|
#include "thread_beos.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WINCE_THREADS
|
||||||
|
#include "thread_wince.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#ifdef FOOBAR_THREADS
|
#ifdef FOOBAR_THREADS
|
||||||
#include "thread_foobar.h"
|
#include "thread_foobar.h"
|
||||||
|
|
Loading…
Reference in New Issue