From b5bb0bbb947f9f29db125f5ed273d9b1a179afb4 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Mon, 21 Oct 2019 00:33:22 +0100 Subject: [PATCH] *.c: Use the new `Py_hash_t' type. Organization: Straylight/Edgeware From: Mark Wooding --- pyke.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyke.h b/pyke.h index f8f821a..e3b2083 100644 --- a/pyke.h +++ b/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. */ -- [mdw]