mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
python: Declare init func with PyMODINIT_FUNC
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
#include "libxml2-py.h"
|
#include "libxml2-py.h"
|
||||||
|
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#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_SIZE PyUnicode_FromStringAndSize
|
||||||
#define PY_IMPORT_STRING PyUnicode_FromString
|
#define PY_IMPORT_STRING PyUnicode_FromString
|
||||||
@ -3639,7 +3639,7 @@ extern void initlibxsltmod(void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
PyObject *PyInit_libxml2mod(void)
|
PyMODINIT_FUNC PyInit_libxml2mod(void)
|
||||||
#else
|
#else
|
||||||
void initlibxml2mod(void)
|
void initlibxml2mod(void)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user