Kaydet (Commit) 41aa8e52 authored tarafından Jack Jansen's avatar Jack Jansen

Include limits.h if we have it.

üst ee398fa0
...@@ -19,6 +19,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ...@@ -19,6 +19,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/ */
#include "Python.h" #include "Python.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
int (*PyOS_InputHook)() = NULL; int (*PyOS_InputHook)() = NULL;
......
...@@ -23,6 +23,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ...@@ -23,6 +23,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
/* Forward */ /* Forward */
static PyObject *filterstring Py_PROTO((PyObject *, PyObject *)); static PyObject *filterstring Py_PROTO((PyObject *, PyObject *));
......
...@@ -10,6 +10,9 @@ Written by Marc-Andre Lemburg (mal@lemburg.com). ...@@ -10,6 +10,9 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
#include "Python.h" #include "Python.h"
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
/* --- Globals ------------------------------------------------------------ */ /* --- Globals ------------------------------------------------------------ */
......
...@@ -33,6 +33,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ...@@ -33,6 +33,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#include "structmember.h" #include "structmember.h"
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
/* Three symbols from graminit.h are also defined in Python.h, with /* Three symbols from graminit.h are also defined in Python.h, with
Py_ prefixes to their names. Python.h can't include graminit.h Py_ prefixes to their names. Python.h can't include graminit.h
......
...@@ -11,6 +11,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ...@@ -11,6 +11,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
/* Module support implementation */ /* Module support implementation */
#include "Python.h" #include "Python.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef MPW /* MPW pushes 'extended' for float and double types with varargs */ #ifdef MPW /* MPW pushes 'extended' for float and double types with varargs */
typedef extended va_double; typedef extended va_double;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment