#ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.
#ifdef WITH_THREAD
+#ifndef DONT_HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "pythread.h"
extern int _PyThread_Started; /* Flag for Py_Exit */
#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 */
*/
#include <ctype.h>
+#ifndef DONT_HAVE_ERRNO_H
#include <errno.h>
+#endif
unsigned long
PyOS_strtoul(str, ptr, base)
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)
#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>
#include "thread_beos.h"
#endif
+#ifdef WINCE_THREADS
+#include "thread_wince.h"
+#endif
+
/*
#ifdef FOOBAR_THREADS
#include "thread_foobar.h"