diff options
author | Barry Warsaw <barry@python.org> | 2011-12-14 15:05:16 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2011-12-14 15:05:16 -0500 |
commit | 667082d0b4aef9c438a2e7fec89614b5b8ef960a (patch) | |
tree | 59e2a97463a621805735b4937f7fb708065daf7d /_dbus_bindings/types-internal.h | |
parent | 11c639e3bd2ca3e6a87f349155dda2acc3cd92ea (diff) | |
download | dbus-python-667082d0b4aef9c438a2e7fec89614b5b8ef960a.tar.gz |
First round of PyInt -> PyLong changes. These are only compatible with Python
2, since there are still some unconditional PyInt calls, which are not valid
in Python 3. However, it lays the framework for conditionalizing on Python 3
and using only PyLong in that case. Where it doesn't matter, PyLong is used
unconditionally.
Diffstat (limited to '_dbus_bindings/types-internal.h')
-rw-r--r-- | _dbus_bindings/types-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/_dbus_bindings/types-internal.h b/_dbus_bindings/types-internal.h index d24c1c0..f06f093 100644 --- a/_dbus_bindings/types-internal.h +++ b/_dbus_bindings/types-internal.h @@ -33,6 +33,9 @@ #include <bytesobject.h> #define PyBytes_InternFromString PyString_InternFromString +/* In Python 2.x, we need this to define the type of PyLongObject */ +#include <longintrepr.h> + #include "dbus_bindings-internal.h" #ifndef DBUS_BINDINGS_TYPES_INTERNAL_H |