From 766d880a2fd0bcb4fca187db255763506e10f96b Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 3 Aug 2007 06:46:29 +0000 Subject: [PATCH] Py_ssize_t is defined regardless of HAVE_LONG_LONG. Will backport --- Include/structmember.h | 4 +++- Misc/NEWS | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Include/structmember.h b/Include/structmember.h index ce5353d515..5b68213c65 100644 --- a/Include/structmember.h +++ b/Include/structmember.h @@ -68,9 +68,11 @@ typedef struct PyMemberDef { #ifdef HAVE_LONG_LONG #define T_LONGLONG 17 #define T_ULONGLONG 18 -#define T_PYSSIZET 19 /* Py_ssize_t */ #endif /* HAVE_LONG_LONG */ +#define T_PYSSIZET 19 /* Py_ssize_t */ + + /* Flags */ #define READONLY 1 #define RO READONLY /* Shorthand */ diff --git a/Misc/NEWS b/Misc/NEWS index a79810def5..123e911d35 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 1? Core and builtins ----------------- +- Py_ssize_t fields work in structmember when HAVE_LONG_LONG is not defined. + - PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. -- 2.50.1