mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 10:17:53 +08:00
* python/python-internal.h (Py_ssize_t): Define as int.
This commit is contained in:
@ -33,8 +33,11 @@
|
||||
|
||||
#if HAVE_LIBPYTHON2_4
|
||||
#include "python2.4/Python.h"
|
||||
/* Py_ssize_t is not defined until 2.5. */
|
||||
typedef Py_intptr_t Py_ssize_t;
|
||||
/* Py_ssize_t is not defined until 2.5.
|
||||
Logical type for Py_ssize_t is Py_intptr_t, but that fails in 64-bit
|
||||
compilation due to several apparent mistakes in python2.4 API, so we
|
||||
use 'int' instead. */
|
||||
typedef int Py_ssize_t;
|
||||
#elif HAVE_LIBPYTHON2_5
|
||||
#include "python2.5/Python.h"
|
||||
#elif HAVE_LIBPYTHON2_6
|
||||
|
Reference in New Issue
Block a user