From 579e32c88ddb4c9b69832a2a9e3c744fc4819207 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 7 Dec 2024 15:32:19 +0100 Subject: [PATCH] python: Declare init func with PyMODINIT_FUNC --- python/libxslt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/libxslt.c b/python/libxslt.c index f5ff0c1f..697cab04 100644 --- a/python/libxslt.c +++ b/python/libxslt.c @@ -52,7 +52,7 @@ __inline int c99_vsnprintf(char *outBuf, size_t size, const char *format, va_lis #endif #if PY_MAJOR_VERSION >= 3 -PyObject* PyInit_libxsltmod(void); +PyMODINIT_FUNC PyInit_libxsltmod(void); #else void initlibxsltmod(void); #endif @@ -1227,7 +1227,7 @@ static PyMethodDef libxsltMethods[] = { #ifdef MERGED_MODULES #if PY_MAJOR_VERSION >= 3 -PyObject* PyInit_libxml2mod(void); +PyMODINIT_FUNC PyInit_libxml2mod(void); #else void initlibxml2mod(void); #endif @@ -1252,7 +1252,7 @@ static struct PyModuleDef moduledef = { #endif #if PY_MAJOR_VERSION >= 3 -PyObject* PyInit_libxsltmod(void){ +PyMODINIT_FUNC PyInit_libxsltmod(void){ #else void initlibxsltmod(void) { #endif