diff options
Diffstat (limited to 'OpenSSL/util.h')
-rw-r--r-- | OpenSSL/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSSL/util.h b/OpenSSL/util.h index 4cef481..e634b01 100644 --- a/OpenSSL/util.h +++ b/OpenSSL/util.h @@ -137,4 +137,8 @@ extern PyObject* PyOpenSSL_LongToHex(PyObject *o); #define PyOpenSSL_LongToHex(o) PyNumber_ToBase(o, 16) #endif +#ifndef Py_TYPE +#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) +#endif + #endif |