commit | 5163f57e6cb413787b4eda62eb338e3fe471d11d | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Fri Apr 22 18:38:16 2011 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Fri Apr 22 18:38:16 2011 -0400 |
tree | a3d3148d4ed62b2a878aceb93e01097c8c02336e | |
parent | 9ce9afb4ca1a0f4a763e2a8f677e469e2815f320 [diff] [blame] |
Compatibility with CPython 2.5 though CPython 3.2
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 @@ #define PyOpenSSL_LongToHex(o) PyNumber_ToBase(o, 16) #endif +#ifndef Py_TYPE +#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) +#endif + #endif