[Python-checkins] r73701 - in python/trunk: Include/pyport.h Misc/NEWS

mark.dickinson python-checkins at python.org
Tue Jun 30 17:32:31 CEST 2009


Author: mark.dickinson
Date: Tue Jun 30 17:32:30 2009
New Revision: 73701
Log:
Issue #6347: Add inttypes.h to the pyport.h #includes; fixes a build
failure on HP-UX 11.00.
Modified:
 python/trunk/Include/pyport.h
 python/trunk/Misc/NEWS
Modified: python/trunk/Include/pyport.h
==============================================================================
--- python/trunk/Include/pyport.h	(original)
+++ python/trunk/Include/pyport.h	Tue Jun 30 17:32:30 2009
@@ -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
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Tue Jun 30 17:32:30 2009
@@ -12,6 +12,10 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /