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
|
||||
|
||||
#ifdef _MSVC
|
||||
#define EXPORTED __declspec(dllexport)
|
||||
#else
|
||||
#define EXPORTED __attribute__ ((visibility ("default")))
|
||||
#ifndef _MSC_VER
|
||||
__attribute__ ((visibility ("default")))
|
||||
#endif
|
||||
EXPORTED PyMODINIT_FUNC
|
||||
PyMODINIT_FUNC
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
PyInit_dukpy(void)
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user