Skip to content

Commit 46a17a9

Browse files
committed
python: Declare init func with PyMODINIT_FUNC
1 parent fe1ee0f commit 46a17a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/libxml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "libxml2-py.h"
3131

3232
#if PY_MAJOR_VERSION >= 3
33-
PyObject *PyInit_libxml2mod(void);
33+
PyMODINIT_FUNC PyInit_libxml2mod(void);
3434

3535
#define PY_IMPORT_STRING_SIZE PyUnicode_FromStringAndSize
3636
#define PY_IMPORT_STRING PyUnicode_FromString
@@ -3671,7 +3671,7 @@ extern void initlibxsltmod(void);
36713671
#endif
36723672

36733673
#if PY_MAJOR_VERSION >= 3
3674-
PyObject *PyInit_libxml2mod(void)
3674+
PyMODINIT_FUNC PyInit_libxml2mod(void)
36753675
#else
36763676
void initlibxml2mod(void)
36773677
#endif

0 commit comments

Comments
 (0)