1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-31 02:43:06 +03:00

python: Declare init func with PyMODINIT_FUNC

This commit is contained in:
Nick Wellnhofer
2024-12-07 15:32:19 +01:00
parent 7504032097
commit 579e32c88d

View File

@ -52,7 +52,7 @@ __inline int c99_vsnprintf(char *outBuf, size_t size, const char *format, va_lis
#endif #endif
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
PyObject* PyInit_libxsltmod(void); PyMODINIT_FUNC PyInit_libxsltmod(void);
#else #else
void initlibxsltmod(void); void initlibxsltmod(void);
#endif #endif
@ -1227,7 +1227,7 @@ static PyMethodDef libxsltMethods[] = {
#ifdef MERGED_MODULES #ifdef MERGED_MODULES
#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
@ -1252,7 +1252,7 @@ static struct PyModuleDef moduledef = {
#endif #endif
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
PyObject* PyInit_libxsltmod(void){ PyMODINIT_FUNC PyInit_libxsltmod(void){
#else #else
void initlibxsltmod(void) { void initlibxsltmod(void) {
#endif #endif