From d5fadf75e4d18df61db41205ace0cda28d98eeaa Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 26 Sep 2000 05:46:01 +0000 Subject: Rationalize use of limits.h, moving the inclusion to Python.h. Add definitions of INT_MAX and LONG_MAX to pyport.h. Remove includes of limits.h and conditional definitions of INT_MAX and LONG_MAX elsewhere. This closes SourceForge patch #101659 and bug #115323. --- Include/Python.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Include/Python.h') diff --git a/Include/Python.h b/Include/Python.h index 153ba07978..308655250d 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -23,6 +23,10 @@ #include "patchlevel.h" #include "config.h" +#ifdef HAVE_LIMITS_H +#include +#endif + /* config.h may or may not define DL_IMPORT */ #ifndef DL_IMPORT /* declarations for DLL import/export */ #define DL_IMPORT(RTYPE) RTYPE -- cgit v1.2.1