Commit 2571cc8b authored by Guido van Rossum's avatar Guido van Rossum

Changes by Mark Hammond for Windows CE. Mostly of the form

  #ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.
parent 99fb7c70
......@@ -108,7 +108,9 @@ static long dxp[256];
#ifdef WITH_THREAD
#ifndef DONT_HAVE_ERRNO_H
#include <errno.h>
#endif
#include "pythread.h"
extern int _PyThread_Started; /* Flag for Py_Exit */
......
......@@ -55,8 +55,12 @@ PERFORMANCE OF THIS SOFTWARE.
#ifndef DONT_HAVE_STAT
#define HAVE_STAT
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifndef DONT_HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#if defined(PYCC_VACPP)
/* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */
......
......@@ -60,7 +60,9 @@ PERFORMANCE OF THIS SOFTWARE.
*/
#include <ctype.h>
#ifndef DONT_HAVE_ERRNO_H
#include <errno.h>
#endif
unsigned long
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 */
#ifndef DONT_HAVE_ERRNO_H
#include <errno.h>
#endif
extern int errno;
double strtod(str, ptr)
......
......@@ -42,13 +42,17 @@ PERFORMANCE OF THIS SOFTWARE.
#define DL_IMPORT(RTYPE) RTYPE
#endif
#ifndef DONT_HAVE_STDIO_H
#include <stdio.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
#ifdef Py_DEBUG
extern char *getenv();
#endif
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
......@@ -162,6 +166,10 @@ void PyThread_init_thread _P0()
#include "thread_beos.h"
#endif
#ifdef WINCE_THREADS
#include "thread_wince.h"
#endif
/*
#ifdef FOOBAR_THREADS
#include "thread_foobar.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment