diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index c358cc2..06ce6ab 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -421,7 +421,8 @@ extern double hypot(double, double); # define HAVE_DECLSPEC_DLL #endif -#if defined(Py_ENABLE_SHARED) /* only get special linkage if built as shared */ +/* only get special linkage if built as shared or platform is Cygwin */ +#if defined(Py_ENABLE_SHARED) || defined(__CYGWIN__) # if defined(HAVE_DECLSPEC_DLL) # ifdef Py_BUILD_CORE # define PyAPI_FUNC(RTYPE) __declspec(dllexport) RTYPE |