mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -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.
|
||||||
#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).
|
||||||
|
|
||||||
#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.
|
||||||
#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.
|
||||||
/* 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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue