mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									5cc21aee0b
								
							
						
					
					
						commit
						eadb6bb3c5
					
				
					 5 changed files with 13 additions and 24 deletions
				
			
		|  | @ -22,12 +22,13 @@ | ||||||
| 
 | 
 | ||||||
| #include "patchlevel.h" | #include "patchlevel.h" | ||||||
| #include "pyconfig.h" | #include "pyconfig.h" | ||||||
|  | #include "pyport.h" | ||||||
| 
 | 
 | ||||||
| #ifdef HAVE_LIMITS_H | #ifdef HAVE_LIMITS_H | ||||||
| #include <limits.h> | #include <limits.h> | ||||||
| #endif | #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 */ | #ifndef DL_IMPORT	/* declarations for DLL import/export */ | ||||||
| #define DL_IMPORT(RTYPE) RTYPE | #define DL_IMPORT(RTYPE) RTYPE | ||||||
| #endif | #endif | ||||||
|  | @ -59,8 +60,6 @@ | ||||||
|  */ |  */ | ||||||
| #include <assert.h> | #include <assert.h> | ||||||
| 
 | 
 | ||||||
| #include "pyport.h" |  | ||||||
| 
 |  | ||||||
| /* Debug-mode build with pymalloc implies PYMALLOC_DEBUG.
 | /* Debug-mode build with pymalloc implies PYMALLOC_DEBUG.
 | ||||||
|  *  PYMALLOC_DEBUG is in error if pymalloc is not in use. |  *  PYMALLOC_DEBUG is in error if pymalloc is not in use. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
|  | @ -384,9 +384,19 @@ extern int fsync(int fd); | ||||||
| extern double hypot(double, double); | extern double hypot(double, double); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | #ifndef __CYGWIN__ | ||||||
| #ifndef DL_IMPORT       /* declarations for DLL import */ | #ifndef DL_IMPORT       /* declarations for DLL import */ | ||||||
| #define DL_IMPORT(RTYPE) RTYPE | #define DL_IMPORT(RTYPE) RTYPE | ||||||
| #endif | #endif | ||||||
|  | #else /* __CYGWIN__ */ | ||||||
|  | #ifdef USE_DL_IMPORT | ||||||
|  | #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE | ||||||
|  | #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE | ||||||
|  | #else /* !USE_DL_IMPORT */ | ||||||
|  | #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE | ||||||
|  | #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE | ||||||
|  | #endif /* USE_DL_IMPORT */ | ||||||
|  | #endif /* __CYGWIN__ */ | ||||||
| 
 | 
 | ||||||
| /* If the fd manipulation macros aren't defined,
 | /* If the fd manipulation macros aren't defined,
 | ||||||
|    here is a set that should do the job */ |    here is a set that should do the job */ | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								configure
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								configure
									
										
									
									
										vendored
									
									
								
							|  | @ -1,5 +1,5 @@ | ||||||
| #! /bin/sh | #! /bin/sh | ||||||
| # From configure.in Revision: 1.314 . | # From configure.in Revision: 1.315 . | ||||||
| # Guess values for system-dependent variables and create Makefiles. | # Guess values for system-dependent variables and create Makefiles. | ||||||
| # Generated by GNU Autoconf 2.53. | # Generated by GNU Autoconf 2.53. | ||||||
| # | # | ||||||
|  |  | ||||||
							
								
								
									
										10
									
								
								configure.in
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								configure.in
									
										
									
									
									
								
							|  | @ -7,16 +7,6 @@ AC_CONFIG_HEADER(pyconfig.h) | ||||||
| # This is for stuff that absolutely must end up in pyconfig.h. | # This is for stuff that absolutely must end up in pyconfig.h. | ||||||
| # Please use pyport.h instead, if possible. | # Please use pyport.h instead, if possible. | ||||||
| AH_BOTTOM([ | AH_BOTTOM([ | ||||||
| #ifdef __CYGWIN__ |  | ||||||
| #ifdef USE_DL_IMPORT |  | ||||||
| #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |  | ||||||
| #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |  | ||||||
| #else |  | ||||||
| #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE |  | ||||||
| #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |  | ||||||
| #endif |  | ||||||
| #endif |  | ||||||
| 
 |  | ||||||
| /* Define the macros needed if on a UnixWare 7.x system. */ | /* Define the macros needed if on a UnixWare 7.x system. */ | ||||||
| #if defined(__USLC__) && defined(__SCO_VERSION__) | #if defined(__USLC__) && defined(__SCO_VERSION__) | ||||||
| #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */ | #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */ | ||||||
|  |  | ||||||
|  | @ -825,16 +825,6 @@ | ||||||
| #undef volatile | #undef volatile | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| #ifdef __CYGWIN__ |  | ||||||
| #ifdef USE_DL_IMPORT |  | ||||||
| #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |  | ||||||
| #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |  | ||||||
| #else |  | ||||||
| #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE |  | ||||||
| #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |  | ||||||
| #endif |  | ||||||
| #endif |  | ||||||
| 
 |  | ||||||
| /* Define the macros needed if on a UnixWare 7.x system. */ | /* Define the macros needed if on a UnixWare 7.x system. */ | ||||||
| #if defined(__USLC__) && defined(__SCO_VERSION__) | #if defined(__USLC__) && defined(__SCO_VERSION__) | ||||||
| #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */ | #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jason Tishler
						Jason Tishler