]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of #1638: %zd configure test fails on Linux
authorChristian Heimes <christian@cheimes.de>
Tue, 18 Dec 2007 21:14:54 +0000 (21:14 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 18 Dec 2007 21:14:54 +0000 (21:14 +0000)
Misc/NEWS
configure
configure.in

index 0b24d7f991bd530e544a24401921d20491246a3f..b041818e496a9c9b1765e697e81d1e4156ff7371 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,21 @@ Core and builtins
 -----------------
 
 - Issue #1553: An errornous __length_hint__ can make list() raise a 
+
+- Issue #1638: %zd configure test fails on Linux
+
+- Issue #1620: New property decorator syntax was modifying the decorator
+  in place instead of creating a new decorator object.
+
+- Issue #1580: New free format floating point representation based on
+  "Floating-Point Printer Sample Code", by Robert G. Burger. For example
+  repr(11./5) now returns '2.2' instead of '2.2000000000000002'.
+
+- Issue #1538: Avoid copying string in split/rsplit if the split
+  char is not found.
+
+- Issue #1553: An erroneous __length_hint__ can make list() raise a
+>>>>>>> .merge-rechts.r59533
   SystemError.
 
 - Issue #1521: On 64bit platforms, using PyArgs_ParseTuple with the t# of w#
index 88e2b9dea2e0572685021613be78fe8320c28a9f..aa63cf708b4873d323be4c68577548b9e177da47 100755 (executable)
--- a/configure
+++ b/configure
@@ -22505,9 +22505,9 @@ cat >>conftest.$ac_ext <<_ACEOF
 #include <stddef.h>
 #include <string.h>
 
-int main()
-{
-    char buffer[256];
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
 
 #ifdef HAVE_SSIZE_T
 typedef ssize_t Py_ssize_t;
@@ -22517,6 +22517,10 @@ typedef long Py_ssize_t;
 typedef int Py_ssize_t;
 #endif
 
+int main()
+{
+    char buffer[256];
+
     if(sprintf(buffer, "%zd", (size_t)123) < 0)
                return 1;
 
index 24275a11842ad3dad7beb7749c608383adbb3873..8d19736db2cb1934644548c101defcf19bb9e9bf 100644 (file)
@@ -3411,9 +3411,9 @@ AC_TRY_RUN([#include <stdio.h>
 #include <stddef.h>
 #include <string.h>
 
-int main()
-{
-    char buffer[256];
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
 
 #ifdef HAVE_SSIZE_T
 typedef ssize_t Py_ssize_t;
@@ -3423,6 +3423,10 @@ typedef long Py_ssize_t;
 typedef int Py_ssize_t;
 #endif
 
+int main()
+{
+    char buffer[256];
+
     if(sprintf(buffer, "%zd", (size_t)123) < 0)
                return 1;