summaryrefslogtreecommitdiff
path: root/Include/longobject.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-26 05:46:01 +0000
committerFred Drake <fdrake@acm.org>2000-09-26 05:46:01 +0000
commit579365e8591bb30dfa8b97a2899a2e2a568d6bdb (patch)
tree4b5adf6fef320c2d98fcd0ec72222c77bb657fd4 /Include/longobject.h
parent048331fe0a96404087df6ec74306f742608f146a (diff)
downloadcpython-579365e8591bb30dfa8b97a2899a2e2a568d6bdb.tar.gz
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.
Diffstat (limited to 'Include/longobject.h')
-rw-r--r--Include/longobject.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/Include/longobject.h b/Include/longobject.h
index f2dea9340b..7ebceecaed 100644
--- a/Include/longobject.h
+++ b/Include/longobject.h
@@ -24,14 +24,7 @@ extern DL_IMPORT(void *) PyLong_AsVoidPtr(PyObject *);
#ifdef HAVE_LONG_LONG
-#ifdef HAVE_LIMITS_H
-#include <limits.h>
-#endif
-
/* Hopefully this is portable... */
-#ifndef LONG_MAX
-#define LONG_MAX 2147483647L
-#endif
#ifndef ULONG_MAX
#define ULONG_MAX 4294967295U
#endif