Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41aa8e5

Browse files
committed
Include limits.h if we have it.
1 parent ee398fa commit 41aa8e5

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

Parser/myreadline.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1919
*/
2020

2121
#include "Python.h"
22+
#ifdef HAVE_LIMITS_H
23+
#include <limits.h>
24+
#endif
2225

2326
int (*PyOS_InputHook)() = NULL;
2427

Python/bltinmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
2323
#ifdef HAVE_UNISTD_H
2424
#include <unistd.h>
2525
#endif
26+
#ifdef HAVE_LIMITS_H
27+
#include <limits.h>
28+
#endif
2629

2730
/* Forward */
2831
static PyObject *filterstring Py_PROTO((PyObject *, PyObject *));

Python/codecs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Written by Marc-Andre Lemburg ([email protected]).
1010

1111
#include "Python.h"
1212
#include <ctype.h>
13+
#ifdef HAVE_LIMITS_H
14+
#include <limits.h>
15+
#endif
1316

1417
/* --- Globals ------------------------------------------------------------ */
1518

Python/compile.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
3333
#include "structmember.h"
3434

3535
#include <ctype.h>
36+
#ifdef HAVE_LIMITS_H
37+
#include <limits.h>
38+
#endif
3639

3740
/* Three symbols from graminit.h are also defined in Python.h, with
3841
Py_ prefixes to their names. Python.h can't include graminit.h

Python/modsupport.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1111
/* Module support implementation */
1212

1313
#include "Python.h"
14+
#ifdef HAVE_LIMITS_H
15+
#include <limits.h>
16+
#endif
1417

1518
#ifdef MPW /* MPW pushes 'extended' for float and double types with varargs */
1619
typedef extended va_double;

0 commit comments

Comments
 (0)