* python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
authorTom Tromey <tromey@redhat.com>
Tue, 28 Jun 2011 13:09:12 +0000 (13:09 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 28 Jun 2011 13:09:12 +0000 (13:09 +0000)
gdb/ChangeLog
gdb/python/python-internal.h

index 8abff1fe094f5e63eced17c9e9dd33051cf3b928..157b82dc4529c765090b8fe3a36889526933753b 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-28  Tom Tromey  <tromey@redhat.com>
+
+       * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
+
 2011-06-27  Tom Tromey  <tromey@redhat.com>
 
        * valops.c (find_overload_match): Call do_cleanups before early
index b65109d13bdc1e0e506631d0959a21cc754288ee..996b23b0c9b46a8e19a1c967b3b8179795ee3faa 100644 (file)
@@ -41,6 +41,9 @@
    around technique as above.  */
 #undef _FILE_OFFSET_BITS
 
+/* Request clean size types from Python.  */
+#define PY_SSIZE_T_CLEAN
+
 /* Include the Python header files using angle brackets rather than
    double quotes.  On case-insensitive filesystems, this prevents us
    from including our python/python.h header file.  */