Skip to content

Commit

Permalink
Modules: Python 3, alias PyInt to PyLong
Browse files Browse the repository at this point in the history
  • Loading branch information
pyldap contributors authored and Petr Viktorin committed Nov 24, 2017
1 parent fa35757 commit 388eafb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Modules/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@
void LDAPadd_methods( PyObject*d, PyMethodDef*methods );
#define PyNone_Check(o) ((o) == Py_None)

/* Py2/3 compatibility */
#if PY_VERSION_HEX >= 0x03000000
/* In Python 3, alias PyInt to PyLong */
#define PyInt_FromLong PyLong_FromLong
#endif

#endif /* __h_common_ */

0 comments on commit 388eafb

Please sign in to comment.