1. Armin Rigo
  2. cpython-withatomic

Commits

Guido van Rossum  committed d834ecd

Changes by Mark Hammond for Windows CE. Mostly of the form
#ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.

  • Participants
  • Parent commits 540c817
  • Branches legacy-trunk

Comments (0)

Files changed (5)

File Python/ceval.c

View file
  • Ignore whitespace
 
 #ifdef WITH_THREAD
 
+#ifndef DONT_HAVE_ERRNO_H
 #include <errno.h>
+#endif
 #include "pythread.h"
 
 extern int _PyThread_Started; /* Flag for Py_Exit */

File Python/import.c

View file
  • Ignore whitespace
 #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 */

File Python/mystrtoul.c

View file
  • Ignore whitespace
 */
 
 #include <ctype.h>
+#ifndef DONT_HAVE_ERRNO_H
 #include <errno.h>
+#endif
 
 unsigned long
 PyOS_strtoul(str, ptr, base)

File Python/strtod.c

View file
  • Ignore whitespace
 
 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)

File Python/thread.c

View file
  • Ignore whitespace
 #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"