From b838b02a37e2d72e3ad4989f622921ec18244365 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 25 Jan 2023 09:01:40 +0100 Subject: [PATCH] try fix the compilation for Python 3.6 --- src/runtime/python/pypgf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index e44bebae7..f15c79fa7 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -1040,6 +1040,8 @@ static PyTypeObject pgf_EmbeddedGrammarType = { 0, /*tp_new */ }; +PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module); + static PyObject* PGF_embed(PGFObject* self, PyObject *modname) {