From aeb9467743f470ef6698b516927bb43c57b33356 Mon Sep 17 00:00:00 2001 From: Roumen Petrov Date: Sat, 23 Feb 2013 13:52:48 +0200 Subject: [PATCH 02/16] MINGW: translate gcc internal defines to python platform specific defines --- Include/pyport.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Include/pyport.h b/Include/pyport.h index 17d9f6d..fc5973e 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -13,6 +13,21 @@ #include #endif +#ifdef __MINGW32__ +/* Translate GCC[mingw*] platform specific defines to those + * used in python code. + */ +#if !defined(MS_WIN64) && defined(_WIN64) +# define MS_WIN64 +#endif +#if !defined(MS_WIN32) && defined(_WIN32) +# define MS_WIN32 +#endif +#if !defined(MS_WINDOWS) && defined(MS_WIN32) +# define MS_WINDOWS +#endif +#endif /*def __MINGW32__*/ + /************************************************************************** Symbols and macros to supply platform-independent interfaces to basic C language & library operations whose spellings vary across platforms. -- 1.7.12.1