1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-05 19:01:18 +03:00

python: Declare init func with PyMODINIT_FUNC

This commit is contained in:
Nick Wellnhofer
2024-12-07 15:07:46 +01:00
parent 3b38f19b40
commit 7ca75b321f

View File

@ -30,7 +30,7 @@
#include "libxml2-py.h"
#if PY_MAJOR_VERSION >= 3
PyObject *PyInit_libxml2mod(void);
PyMODINIT_FUNC PyInit_libxml2mod(void);
#define PY_IMPORT_STRING_SIZE PyUnicode_FromStringAndSize
#define PY_IMPORT_STRING PyUnicode_FromString
@ -3639,7 +3639,7 @@ extern void initlibxsltmod(void);
#endif
#if PY_MAJOR_VERSION >= 3
PyObject *PyInit_libxml2mod(void)
PyMODINIT_FUNC PyInit_libxml2mod(void)
#else
void initlibxml2mod(void)
#endif