X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/4648f560097060c1eaeb07ba0752e6a036c07ab9..620169aef06f74c9a8574e28b5482061e81a7389:/pyke/pyke.h diff --git a/pyke/pyke.h b/pyke/pyke.h index f8f821a..e3b2083 100644 --- a/pyke/pyke.h +++ b/pyke/pyke.h @@ -82,6 +82,13 @@ PRIVATE_SYMBOLS; # define PyVarObject_HEAD_INIT(super, sz) PyObject_HEAD_INIT(super) sz, #endif +/* Python 3.2 changed the type of hash values, so paper over this annoying + * difference. + */ +#if PY_VERSION_HEX < 0x03020000 + typedef long Py_hash_t; +#endif + /*----- Utilities for returning values and exceptions ---------------------*/ /* Returning values. */