summaryrefslogtreecommitdiff
path: root/Include
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 /Include
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 'Include')
-rw-r--r--Include/Python.h2
-rw-r--r--Include/pyport.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/Include/Python.h b/Include/Python.h
index aed1b7b43f..f0be28fa74 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -35,7 +35,7 @@
#endif
#include <string.h>
-#ifndef DONT_HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include <stdlib.h>
diff --git a/Include/pyport.h b/Include/pyport.h
index 47b9f70628..be6c51fc5a 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -240,10 +240,10 @@ typedef Py_intptr_t Py_ssize_t;
* to your pyconfig.h. Python code beyond this should check HAVE_STAT and
* HAVE_FSTAT instead.
* Also
- * #define DONT_HAVE_SYS_STAT_H
- * if <sys/stat.h> doesn't exist on your platform, and
+ * #define HAVE_SYS_STAT_H
+ * if <sys/stat.h> exists on your platform, and
* #define HAVE_STAT_H
- * if <stat.h> does (don't look at me -- ths mess is inherited).
+ * if <stat.h> does.
*/
#ifndef DONT_HAVE_STAT
#define HAVE_STAT
@@ -258,7 +258,7 @@ typedef Py_intptr_t Py_ssize_t;
#include "unixstuff.h"
#endif
-#ifndef DONT_HAVE_SYS_STAT_H
+#ifdef HAVE_SYS_STAT_H
#if defined(PYOS_OS2) && defined(PYCC_GCC)
#include <sys/types.h>
#endif