summaryrefslogtreecommitdiff
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-06-10 12:23:46 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-06-10 12:23:46 +0000
commit1ad9a131d6a2fe83e87d95bf362db3c93a920b9d (patch)
tree98bfd6c0a93c3c223e6fbf9e9ab1b00ad03aa3bc /PC/pyconfig.h
parent301a531e54fa0917de6d9786842b2e11bbe57e8b (diff)
downloadcpython-1ad9a131d6a2fe83e87d95bf362db3c93a920b9d.tar.gz
Patch #1495999: Part two of Windows CE changes.
- update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h46
1 files changed, 44 insertions, 2 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 14a32dbbb1..e0df67383b 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -78,8 +78,15 @@ MS_CORE_DLL.
#endif
#ifdef MS_WINCE
-#define DONT_HAVE_SYS_STAT_H
-#define DONT_HAVE_ERRNO_H
+/* Python uses GetVersion() to distinguish between
+ * Windows NT and 9x/ME where OS Unicode support is concerned.
+ * Windows CE supports Unicode in the same way as NT so we
+ * define the missing GetVersion() accordingly.
+ */
+#define GetVersion() (4)
+/* Windows CE does not support environment variables */
+#define getenv(v) (NULL)
+#define environ (NULL)
#endif
/* Compiler specific defines */
@@ -356,6 +363,16 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define to empty if the keyword does not work. */
/* #define const */
+/* Define to 1 if you have the <conio.h> header file. */
+#ifndef MS_WINCE
+#define HAVE_CONIO_H 1
+#endif
+
+/* Define to 1 if you have the <direct.h> header file. */
+#ifndef MS_WINCE
+#define HAVE_DIRECT_H 1
+#endif
+
/* Define if you have dirent.h. */
/* #define DIRENT 1 */
@@ -561,11 +578,26 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define if you have the <dlfcn.h> header file. */
/* #undef HAVE_DLFCN_H */
+/* Define to 1 if you have the <errno.h> header file. */
+#ifndef MS_WINCE
+#define HAVE_ERRNO_H 1
+#endif
+
/* Define if you have the <fcntl.h> header file. */
#ifndef MS_WINCE
#define HAVE_FCNTL_H 1
#endif
+/* Define to 1 if you have the <process.h> header file. */
+#ifndef MS_WINCE
+#define HAVE_PROCESS_H 1
+#endif
+
+/* Define to 1 if you have the <signal.h> header file. */
+#ifndef MS_WINCE
+#define HAVE_SIGNAL_H 1
+#endif
+
/* Define if you have the <stdarg.h> prototypes. */
#define HAVE_STDARG_PROTOTYPES
@@ -581,12 +613,22 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define if you have the <sys/select.h> header file. */
/* #define HAVE_SYS_SELECT_H 1 */
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#ifndef MS_WINCE
+#define HAVE_SYS_STAT_H 1
+#endif
+
/* Define if you have the <sys/time.h> header file. */
/* #define HAVE_SYS_TIME_H 1 */
/* Define if you have the <sys/times.h> header file. */
/* #define HAVE_SYS_TIMES_H 1 */
+/* Define to 1 if you have the <sys/types.h> header file. */
+#ifndef MS_WINCE
+#define HAVE_SYS_TYPES_H 1
+#endif
+
/* Define if you have the <sys/un.h> header file. */
/* #define HAVE_SYS_UN_H 1 */