diff options
author | Matus Valo <matusvalo@gmail.com> | 2017-09-10 12:08:51 -0700 |
---|---|---|
committer | Matus Valo <matusvalo@gmail.com> | 2017-09-10 12:08:51 -0700 |
commit | 6c99d6cab01a26d71f9da79fe876420bc54507ce (patch) | |
tree | 1798bff07dd5a1bec0206353c30916510463a7bc | |
parent | 76372513d65221e38472c33a412e39c9cd5e2703 (diff) | |
download | librabbitmq-6c99d6cab01a26d71f9da79fe876420bc54507ce.tar.gz |
Added PyInt_AS_LONG and PyInt_Check macros
-rw-r--r-- | Modules/_librabbitmq/connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_librabbitmq/connection.h b/Modules/_librabbitmq/connection.h index a0e5d36..d9a00f6 100644 --- a/Modules/_librabbitmq/connection.h +++ b/Modules/_librabbitmq/connection.h @@ -18,6 +18,8 @@ #if PY_VERSION_HEX >= 0x03000000 /* 3.0 and up */ # define FROM_FORMAT PyUnicode_FromFormat # define PyInt_FromLong PyLong_FromLong +# define PyInt_AS_LONG PyLong_AsLong +# define PyInt_Check PyLong_Check # define PyInt_FromSsize_t PyLong_FromSsize_t # define PyString_INTERN_FROM_STRING PyString_FromString #else /* 2.x */ |