File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ static long dxp[256];
108108
109109#ifdef WITH_THREAD
110110
111+ #ifndef DONT_HAVE_ERRNO_H
111112#include <errno.h>
113+ #endif
112114#include "pythread.h"
113115
114116extern int _PyThread_Started ; /* Flag for Py_Exit */
Original file line number Diff line number Diff line change @@ -55,8 +55,12 @@ PERFORMANCE OF THIS SOFTWARE.
5555#ifndef DONT_HAVE_STAT
5656#define HAVE_STAT
5757
58+ #ifndef DONT_HAVE_SYS_TYPES_H
5859#include <sys/types.h>
60+ #endif
61+ #ifndef DONT_HAVE_SYS_STAT_H
5962#include <sys/stat.h>
63+ #endif
6064
6165#if defined(PYCC_VACPP )
6266/* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ PERFORMANCE OF THIS SOFTWARE.
6060*/
6161
6262#include <ctype.h>
63+ #ifndef DONT_HAVE_ERRNO_H
6364#include <errno.h>
65+ #endif
6466
6567unsigned long
6668PyOS_strtoul (str , ptr , base )
Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ static double HUGE = 1.7976931348623157e308;
5454
5555extern double atof (); /* Only called when result known to be ok */
5656
57+ #ifndef DONT_HAVE_ERRNO_H
5758#include <errno.h>
59+ #endif
5860extern int errno ;
5961
6062double strtod (str , ptr )
Original file line number Diff line number Diff line change @@ -42,13 +42,17 @@ PERFORMANCE OF THIS SOFTWARE.
4242#define DL_IMPORT (RTYPE ) RTYPE
4343#endif
4444
45+ #ifndef DONT_HAVE_STDIO_H
4546#include <stdio.h>
47+ #endif
4648
4749#ifdef HAVE_STDLIB_H
4850#include <stdlib.h>
4951#else
52+ #ifdef Py_DEBUG
5053extern char * getenv ();
5154#endif
55+ #endif
5256
5357#ifdef HAVE_UNISTD_H
5458#include <unistd.h>
@@ -162,6 +166,10 @@ void PyThread_init_thread _P0()
162166#include "thread_beos.h"
163167#endif
164168
169+ #ifdef WINCE_THREADS
170+ #include "thread_wince.h"
171+ #endif
172+
165173/*
166174#ifdef FOOBAR_THREADS
167175#include "thread_foobar.h"
You can’t perform that action at this time.
0 commit comments