From b1cb58e316bdefbfd69ad17680973631d50ae167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 18 Jul 2015 10:24:46 -0400 Subject: [PATCH] Always define _Py_*_SUPPRESS_IPH macros There is no reason to limit those macros with Py_BUILD_CORE. In issue23524 it was said that they should by used by the whole stdlib, and indeed they have to be, if stdlib functions are supposed to return the errors they are documented to return. Likewise, any external python modules might want to make use of them. This fixes compilation of timemodule.c. --- Include/pyport.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Include/pyport.h b/Include/pyport.h index 66e00d4e6d..1f442826e5 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -877,7 +877,6 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *); #define PY_LITTLE_ENDIAN 1 #endif -#ifdef Py_BUILD_CORE /* * Macros to protect CRT calls against instant termination when passed an * invalid parameter (issue23524). @@ -895,6 +894,5 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler; #define _Py_END_SUPPRESS_IPH #endif /* _MSC_VER >= 1900 */ -#endif /* Py_BUILD_CORE */ #endif /* Py_PYPORT_H */ -- 2.1.0