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:
@ -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
|
||||
|
Reference in New Issue
Block a user