mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:33:12 +02:00
Fix dukpy not building on windows
This commit is contained in:
parent
aee8af31f3
commit
f005731212
1 changed files with 3 additions and 5 deletions
|
|
@ -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…
Reference in a new issue