Skip to content

Commit 6c99d6c

Browse files
committed
Added PyInt_AS_LONG and PyInt_Check macros
1 parent 7637251 commit 6c99d6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_librabbitmq/connection.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#if PY_VERSION_HEX >= 0x03000000 /* 3.0 and up */
1919
# define FROM_FORMAT PyUnicode_FromFormat
2020
# define PyInt_FromLong PyLong_FromLong
21+
# define PyInt_AS_LONG PyLong_AsLong
22+
# define PyInt_Check PyLong_Check
2123
# define PyInt_FromSsize_t PyLong_FromSsize_t
2224
# define PyString_INTERN_FROM_STRING PyString_FromString
2325
#else /* 2.x */

0 commit comments

Comments
 (0)