From 1c033f8c7197bfb01ee804876589b4fb5ca61290 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 28 Jun 2011 13:09:12 +0000 Subject: [PATCH] * python/python-internal.h (PY_SSIZE_T_CLEAN): Define. --- gdb/ChangeLog | 4 ++++ gdb/python/python-internal.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8abff1fe094..157b82dc452 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-06-28 Tom Tromey + + * python/python-internal.h (PY_SSIZE_T_CLEAN): Define. + 2011-06-27 Tom Tromey * valops.c (find_overload_match): Call do_cleanups before early diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index b65109d13bd..996b23b0c9b 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -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. */ -- 2.30.2