From d1130fec1630bea495811c2d995eb941e8291a57 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Tue, 25 Jan 2022 15:43:45 -0500 Subject: [PATCH] Try using the limited API --- zfec/_fecmodule.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zfec/_fecmodule.c b/zfec/_fecmodule.c index 7bd484a6..a719113e 100644 --- a/zfec/_fecmodule.c +++ b/zfec/_fecmodule.c @@ -2,6 +2,12 @@ * zfec -- fast forward error correction library with Python interface */ +/* + * Limit the available API to that in CPython 3.7 so that the resulting + * extension module is usable with Python 3.7 and onwards. + */ +#define Py_LIMITED_API 0x03070000 + #include #include #include