#7706: add include guards where they're missing; required for Windows CE

This commit is contained in:
Andrew M. Kuchling 2010-02-22 23:12:00 +00:00
parent 00b6a5c03d
commit 4b81bc7fe6
2 changed files with 12 additions and 1 deletions

View File

@ -2,9 +2,15 @@
#define PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN
#include "Python.h" #include "Python.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h> #include <fcntl.h>
#endif
#include <stddef.h> /* For offsetof */ #include <stddef.h> /* For offsetof */
#include "_iomodule.h" #include "_iomodule.h"

View File

@ -7,12 +7,17 @@
#include "intrcheck.h" #include "intrcheck.h"
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
#ifdef HAVE_PROCESS_H
#include <process.h> #include <process.h>
#endif #endif
#endif
#ifdef HAVE_SIGNAL_H
#include <signal.h> #include <signal.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif #endif