Include limits.h if we have it.
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 3 Jul 2000 21:39:47 +0000 (21:39 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 3 Jul 2000 21:39:47 +0000 (21:39 +0000)
Parser/myreadline.c
Python/bltinmodule.c
Python/codecs.c
Python/compile.c
Python/modsupport.c

index 22a05cfc96836e2f25ad3d97db62aea38cbc4a9d..96749b2f03cec06664a6adffd80f6e81b70d083b 100644 (file)
@@ -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;
 
index bbd9969a9332a4524690a5b604983e903636f930..82867e0f43914c063d4153623b4f1fed26c366b5 100644 (file)
@@ -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 *));
index 20df522350d9aef5b47233736e54105c0bd14660..27331ab66b171df122c25901708c19aeb8411fcd 100644 (file)
@@ -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 ------------------------------------------------------------ */
 
index d713c7e250a99ec3a3a4f7e006d29af135adccf2..ce7c0e484ddd6000437aff036d34095cefdb9afc 100644 (file)
@@ -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
index 4a206a13344af9bc8f937178722ac6a24a5a9c05..afecc0e51546789384d91d9ab567e1392f5717d7 100644 (file)
@@ -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;