X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/017d5f6583ba31e9971dd05c6b4eb0b9ef1eadfa..41e8ab3d28e0a10a55150f86bdf29df276a0a8d2:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index ecdbc30..8f8da9d 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -33,6 +33,8 @@ /*----- Header files ------------------------------------------------------*/ +#define PY_SSIZE_T_CLEAN + #include #include #include @@ -44,6 +46,7 @@ #include #include +#include #include #include @@ -62,6 +65,7 @@ #include #include #include +#include #include #include #include @@ -317,7 +321,7 @@ extern PyObject *gf_pywrap(mp *); extern mp *mp_frompyobject(PyObject *, int); extern PyObject *mp_topystring(mp *, int, const char *, const char *, const char *); -extern int mp_tolong_checked(mp *, long *); +extern int mp_tolong_checked(mp *, long *, int); /*----- Abstract fields ---------------------------------------------------*/