summaryrefslogtreecommitdiff
path: root/Include/Python.h
diff options
context:
space:
mode:
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 e3addc704a..593c8f6541 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.
*/