diff Include/Python.h @ 23458:8a45bfd6b471 legacy-trunk

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.
author Jason Tishler <jason@tishler.net>
date Wed, 15 May 2002 11:51:33 +0000
parents afe263672fd8
children 61348aa2ff98
line wrap: on
line diff
--- a/Include/Python.h	Wed May 15 11:32:35 2002 +0000
+++ b/Include/Python.h	Wed May 15 11:51:33 2002 +0000
@@ -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.
  */