mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Include limits.h if we have it.
This commit is contained in:
parent
ee398fa058
commit
41aa8e523d
5 changed files with 15 additions and 0 deletions
|
@ -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 *));
|
||||
|
|
|
@ -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 ------------------------------------------------------------ */
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue