summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorJason Tishler <jason@tishler.net>2002-06-04 15:07:08 (GMT)
committerJason Tishler <jason@tishler.net>2002-06-04 15:07:08 (GMT)
commitbc48826dc2fdcf53a837dbf6c35eff4ab69d08bf (patch)
tree42f9a5e4dbbc7c4ad4a57e641ef49f978c7667fa /Include/Python.h
parent1bdd9b033a9b740ba2b42347494e965b462a8af2 (diff)
downloadcpython-bc48826dc2fdcf53a837dbf6c35eff4ab69d08bf.zip
cpython-bc48826dc2fdcf53a837dbf6c35eff4ab69d08bf.tar.gz
cpython-bc48826dc2fdcf53a837dbf6c35eff4ab69d08bf.tar.bz2
Patch #555929: Cygwin AH_BOTTOM cleanup patch (*** version 2 ***)
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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Include/Python.h b/Include/Python.h
index b978de2..3f0fd9b 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -27,14 +27,6 @@
#include <limits.h>
#endif
-/* pyconfig.h may or may not define DL_IMPORT */
-#ifndef DL_IMPORT /* declarations for DLL import/export */
-#define DL_IMPORT(RTYPE) RTYPE
-#endif
-#ifndef DL_EXPORT /* declarations for DLL import/export */
-#define DL_EXPORT(RTYPE) RTYPE
-#endif
-
#if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
#define _SGI_MP_SOURCE
#endif
@@ -61,6 +53,14 @@
#include "pyport.h"
+/* 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
+#ifndef DL_EXPORT /* declarations for DLL import/export */
+#define DL_EXPORT(RTYPE) RTYPE
+#endif
+
/* Debug-mode build with pymalloc implies PYMALLOC_DEBUG.
* PYMALLOC_DEBUG is in error if pymalloc is not in use.
*/