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

Skip to content

Commit db67739

Browse files
committed
Jack Jansen, Mac patch:
Include limits.h if we have it.
1 parent f12d7a0 commit db67739

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Modules/arraymodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
2222
#include <sys/types.h> /* For size_t */
2323
#endif /* DONT_HAVE_SYS_TYPES_H */
2424
#endif /* !STDC_HEADERS */
25+
#ifdef HAVE_LIMITS_H
26+
#include <limits.h>
27+
#endif /* HAVE_LIMITS_H */
2528

2629
struct arrayobject; /* Forward */
2730

Python/getargs.c

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

2020
#include <ctype.h>
21+
#ifdef HAVE_LIMITS_H
22+
#include <limits.h>
23+
#endif
2124

2225

2326
int PyArg_Parse Py_PROTO((PyObject *, char *, ...));

0 commit comments

Comments
 (0)