Fix dukpy not building on windows

This commit is contained in:
Kovid Goyal 2017-06-07 12:46:36 +05:30
parent aee8af31f3
commit f005731212
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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