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

Skip to content

Commit 8c1e294

Browse files
committed
Merged revisions 73702 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k ................ r73702 | mark.dickinson | 2009-06-30 16:45:17 +0100 (Tue, 30 Jun 2009) | 10 lines Merged revisions 73701 via svnmerge from svn+ssh://[email protected]/python/trunk ........ r73701 | mark.dickinson | 2009-06-30 16:32:30 +0100 (Tue, 30 Jun 2009) | 3 lines Issue #6347: Add inttypes.h to the pyport.h #includes; fixes a build failure on HP-UX 11.00. ........ ................
1 parent e5344d6 commit 8c1e294

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Include/pyport.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
#include "pyconfig.h" /* include for defines */
55

6+
/* Some versions of HP-UX & Solaris need inttypes.h for int32_t,
7+
INT32_MAX, etc. */
8+
#ifdef HAVE_INTTYPES_H
9+
#include <inttypes.h>
10+
#endif
11+
612
#ifdef HAVE_STDINT_H
713
#include <stdint.h>
814
#endif

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ What's New in Python 3.1.1?
1212
Core and Builtins
1313
-----------------
1414

15+
- Issue #6347: Include inttypes.h as well as stdint.h in pyport.h.
16+
This fixes a build failure on HP-UX: int32_t and uint32_t are
17+
defined in inttypes.h instead of stdint.h on that platform.
18+
1519
- Issue #6373: Fixed a RuntimeError when encoding with the latin-1 codec and
1620
the 'surrogateescape' error handler, a string which contains unpaired
1721
surrogates.

0 commit comments

Comments
 (0)