commit | a5a032f46a8254b47ed65459043b4ef8df0c87f5 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Thu Aug 12 20:03:32 2010 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Thu Aug 12 20:03:32 2010 -0400 |
tree | 70121893a1111468b29c627161468131e3e168f4 | |
parent | c1e89aa7cace980432fd23c651673fb5f2019c31 [diff] [blame] |
Stretch compat back to Python 2.4
diff --git a/OpenSSL/util.h b/OpenSSL/util.h index 73accbf..f9e3a77 100644 --- a/OpenSSL/util.h +++ b/OpenSSL/util.h
@@ -131,4 +131,10 @@ #define PY_SSIZE_T_MIN INT_MIN #endif +#if !defined(PyNumber_ToBase) +extern PyObject* PyOpenSSL_LongToHex(PyObject *o); +#else +#define PyOpenSSL_LongToHex(o) PyNumber_ToBase(o, 16) +#endif + #endif