File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 6666#if defined(Py_ENABLE_SHARED ) || defined(__CYGWIN__ )
6767# if defined(HAVE_DECLSPEC_DLL )
6868# if defined(Py_BUILD_CORE ) && !defined(Py_BUILD_CORE_MODULE )
69- # define PyAPI_FUNC (RTYPE ) Py_EXPORTED_SYMBOL RTYPE
70- # define PyAPI_DATA (RTYPE ) extern Py_EXPORTED_SYMBOL RTYPE
7169 /* module init functions inside the core need no external linkage */
7270 /* except for Cygwin to handle embedding */
73- # if defined(__CYGWIN__ )
74- # define _PyINIT_FUNC_DECLSPEC _PyINIT_EXPORTED_SYMBOL
75- # else /* __CYGWIN__ */
71+ # if !defined(__CYGWIN__ )
7672# define _PyINIT_FUNC_DECLSPEC
7773# endif /* __CYGWIN__ */
7874# else /* Py_BUILD_CORE */
8177 /* Under Cygwin, auto-import functions to prevent compilation */
8278 /* failures similar to those described at the bottom of 4.1: */
8379 /* http://docs.python.org/extending/windows.html#a-cookbook-approach */
84- # if !defined(__CYGWIN__ )
80+ # if defined(__CYGWIN__ )
81+ # define _PyINIT_FUNC_DECLSPEC _PyINIT_EXPORTED_SYMBOL
82+ # else /* __CYGWIN__ */
8583# define PyAPI_FUNC (RTYPE ) Py_IMPORTED_SYMBOL RTYPE
8684# endif /* !__CYGWIN__ */
8785# define PyAPI_DATA (RTYPE ) extern Py_IMPORTED_SYMBOL RTYPE
You can’t perform that action at this time.
0 commit comments