]> granicus.if.org Git - python/commitdiff
Issue #6347: Add inttypes.h to the pyport.h #includes; fixes a build
authorMark Dickinson <dickinsm@gmail.com>
Tue, 30 Jun 2009 15:32:30 +0000 (15:32 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 30 Jun 2009 15:32:30 +0000 (15:32 +0000)
failure on HP-UX 11.00.

Include/pyport.h
Misc/NEWS

index f44c43e24775bd463cae168fac628a87c678d973..da83196e7f3e485445b8790d351fa6d43e729b86 100644 (file)
@@ -3,6 +3,12 @@
 
 #include "pyconfig.h" /* include for defines */
 
+/* Some versions of HP-UX & Solaris need inttypes.h for int32_t,
+   INT32_MAX, etc. */
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
 #ifdef HAVE_STDINT_H
 #include <stdint.h>
 #endif
index 30e2217b68ac9516415558fbb2237bf26257d40b..1e244c9518045f9c2be7389f92eed170a8a85323 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@ What's New in Python 2.7 alpha 1
 Core and Builtins
 -----------------
 
+- Issue #6347: Include inttypes.h as well as stdint.h in pyport.h.
+  This fixes a build failure on HP-UX: int32_t and uint32_t are
+  defined in inttypes.h instead of stdint.h on that platform.
+
 - Issue #4856: Remove checks for win NT.
 
 - Issue #2016: Fixed a crash in a corner case where the dictionary of keyword