mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Work with ancient linux compilers
This commit is contained in:
parent
5de169c9a7
commit
d28c4a44ef
@ -184,10 +184,11 @@ exec_module(PyObject *mod) {
|
|||||||
|
|
||||||
static PyModuleDef_Slot slots[] = { {Py_mod_exec, (void*)exec_module}, {0, NULL} };
|
static PyModuleDef_Slot slots[] = { {Py_mod_exec, (void*)exec_module}, {0, NULL} };
|
||||||
|
|
||||||
static struct PyModuleDef module_def = {
|
static struct PyModuleDef module_def = {0};
|
||||||
.m_base = PyModuleDef_HEAD_INIT,
|
|
||||||
.m_name = "hunspell",
|
|
||||||
.m_slots = slots
|
|
||||||
};
|
|
||||||
|
|
||||||
CALIBRE_MODINIT_FUNC PyInit_hunspell(void) { return PyModuleDef_Init(&module_def); }
|
CALIBRE_MODINIT_FUNC PyInit_hunspell(void) {
|
||||||
|
module_def.m_base = PyModuleDef_HEAD_INIT;
|
||||||
|
module_def.m_name = "hunspell";
|
||||||
|
module_def.m_slots = slots;
|
||||||
|
return PyModuleDef_Init(&module_def);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user