summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorJason Tishler <jason@tishler.net>2002-05-15 11:51:33 (GMT)
committerJason Tishler <jason@tishler.net>2002-05-15 11:51:33 (GMT)
commiteadb6bb3c5203ff8024b37cddf2787defd02df4c (patch)
tree5a1ddd23cd15f8e9348fc68e39baecf221edfad1 /Include/Python.h
parent5cc21aee0ba54300bbb3b68531e1f2ca124a1d20 (diff)
downloadcpython-eadb6bb3c5203ff8024b37cddf2787defd02df4c.zip
cpython-eadb6bb3c5203ff8024b37cddf2787defd02df4c.tar.gz
cpython-eadb6bb3c5203ff8024b37cddf2787defd02df4c.tar.bz2
Patch #555929: Cygwin AH_BOTTOM cleanup patch
This patch complies with the following request found near the top of configure.in: # This is for stuff that absolutely must end up in pyconfig.h. # Please use pyport.h instead, if possible. I tested this patch under Cygwin, Win32, and Red Hat Linux. Python built and ran successfully on each of these platforms.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Include/Python.h b/Include/Python.h
index e3addc7..593c8f6 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -22,12 +22,13 @@
#include "patchlevel.h"
#include "pyconfig.h"
+#include "pyport.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
-/* pyconfig.h may or may not define DL_IMPORT */
+/* pyconfig.h or pyport.h may or may not define DL_IMPORT */
#ifndef DL_IMPORT /* declarations for DLL import/export */
#define DL_IMPORT(RTYPE) RTYPE
#endif
@@ -59,8 +60,6 @@
*/
#include <assert.h>
-#include "pyport.h"
-
/* Debug-mode build with pymalloc implies PYMALLOC_DEBUG.
* PYMALLOC_DEBUG is in error if pymalloc is not in use.
*/