diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-03 21:39:47 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-03 21:39:47 (GMT) |
commit | 41aa8e523d1f81dc4b4d529dd01c59aef350eada (patch) | |
tree | 41635a05a45a6d8cfbe240570bd8f88fa341dcc1 | |
parent | ee398fa058555d3229e48c323247f60f6f560313 (diff) | |
download | cpython-41aa8e523d1f81dc4b4d529dd01c59aef350eada.zip cpython-41aa8e523d1f81dc4b4d529dd01c59aef350eada.tar.gz cpython-41aa8e523d1f81dc4b4d529dd01c59aef350eada.tar.bz2 |
Include limits.h if we have it.
-rw-r--r-- | Parser/myreadline.c | 3 | ||||
-rw-r--r-- | Python/bltinmodule.c | 3 | ||||
-rw-r--r-- | Python/codecs.c | 3 | ||||
-rw-r--r-- | Python/compile.c | 3 | ||||
-rw-r--r-- | Python/modsupport.c | 3 |
5 files changed, 15 insertions, 0 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 22a05cf..96749b2 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -19,6 +19,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #include "Python.h" +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif int (*PyOS_InputHook)() = NULL; diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index bbd9969..82867e0 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -23,6 +23,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #ifdef HAVE_UNISTD_H #include <unistd.h> #endif +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif /* Forward */ static PyObject *filterstring Py_PROTO((PyObject *, PyObject *)); diff --git a/Python/codecs.c b/Python/codecs.c index 20df522..27331ab 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -10,6 +10,9 @@ Written by Marc-Andre Lemburg (mal@lemburg.com). #include "Python.h" #include <ctype.h> +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif /* --- Globals ------------------------------------------------------------ */ diff --git a/Python/compile.c b/Python/compile.c index d713c7e..ce7c0e4 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -33,6 +33,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include "structmember.h" #include <ctype.h> +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif /* Three symbols from graminit.h are also defined in Python.h, with Py_ prefixes to their names. Python.h can't include graminit.h diff --git a/Python/modsupport.c b/Python/modsupport.c index 4a206a1..afecc0e 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -11,6 +11,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. /* Module support implementation */ #include "Python.h" +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif #ifdef MPW /* MPW pushes 'extended' for float and double types with varargs */ typedef extended va_double; |