Skip to content

Commit 82ad329

Browse files
committed
Remove duplication with defaults
1 parent 5abc323 commit 82ad329

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Include/exports.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,9 @@
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 */
@@ -81,7 +77,9 @@
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

0 commit comments

Comments
 (0)