mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix dukpy not building on windows
This commit is contained in:
parent
aee8af31f3
commit
f005731212
@ -63,12 +63,10 @@ static struct PyModuleDef moduledef = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSVC
|
#ifndef _MSC_VER
|
||||||
#define EXPORTED __declspec(dllexport)
|
__attribute__ ((visibility ("default")))
|
||||||
#else
|
|
||||||
#define EXPORTED __attribute__ ((visibility ("default")))
|
|
||||||
#endif
|
#endif
|
||||||
EXPORTED PyMODINIT_FUNC
|
PyMODINIT_FUNC
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
PyInit_dukpy(void)
|
PyInit_dukpy(void)
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user