Include limits.h if we have it.

This commit is contained in:
Jack Jansen 2000-07-03 21:39:47 +00:00
parent ee398fa058
commit 41aa8e523d
5 changed files with 15 additions and 0 deletions

View 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 *));

View 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 ------------------------------------------------------------ */

View 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

View 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;