diff options
| author | vvvv <[email protected]> | 2022-02-10 16:46:34 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:34 +0300 | 
| commit | ad94e93a059747f4fc3d7add88d1a83daf40b733 (patch) | |
| tree | 731d57e580bd143e1136e7747f13b26e6bac95d0 /contrib/tools/python/src | |
| parent | 298c6da79f1d8f35089a67f463f0b541bec36d9b (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python/src')
| -rw-r--r-- | contrib/tools/python/src/Include/pyport.h | 40 | 
1 files changed, 20 insertions, 20 deletions
| diff --git a/contrib/tools/python/src/Include/pyport.h b/contrib/tools/python/src/Include/pyport.h index ad2ff5929aa..d5379b83315 100644 --- a/contrib/tools/python/src/Include/pyport.h +++ b/contrib/tools/python/src/Include/pyport.h @@ -763,16 +763,16 @@ extern int fdatasync(int);  #       define HAVE_DECLSPEC_DLL  #endif -/* - * GCC visibility support, introduced in GCC 4.0. Only matters when - * compiling with gcc's -fvisibility=hidden argument.  This applies to all - * binaries and when embedding, not just libpython.so.  See - * http://gcc.gnu.org/wiki/Visibility for more information. - */ -#if defined(__GNUC__) && __GNUC__ >= 4 -#       define HAVE_ATTRIBUTE_VISIBILITY -#endif - +/*  + * GCC visibility support, introduced in GCC 4.0. Only matters when  + * compiling with gcc's -fvisibility=hidden argument.  This applies to all  + * binaries and when embedding, not just libpython.so.  See  + * http://gcc.gnu.org/wiki/Visibility for more information.  + */  +#if defined(__GNUC__) && __GNUC__ >= 4  +#       define HAVE_ATTRIBUTE_VISIBILITY  +#endif  +   /* only get special linkage if built as shared or platform is Cygwin */  #if defined(Py_ENABLE_SHARED)  #       if defined(HAVE_DECLSPEC_DLL) @@ -804,16 +804,16 @@ extern int fdatasync(int);  #                       endif /* __cplusplus */  #               endif /* Py_BUILD_CORE */  #       endif /* HAVE_DECLSPEC */ -#elif defined(HAVE_ATTRIBUTE_VISIBILITY) -#       define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE -#       define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE -#       ifdef Py_BUILD_CORE -#               define PyMODINIT_FUNC void -#       elif defined(__cplusplus) -#               define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void -#       else /* __cplusplus */ -#               define PyMODINIT_FUNC __attribute__((visibility("default"))) void -#       endif /* Py_BUILD_CORE */ +#elif defined(HAVE_ATTRIBUTE_VISIBILITY)  +#       define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE  +#       define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE  +#       ifdef Py_BUILD_CORE  +#               define PyMODINIT_FUNC void  +#       elif defined(__cplusplus)  +#               define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void  +#       else /* __cplusplus */  +#               define PyMODINIT_FUNC __attribute__((visibility("default"))) void  +#       endif /* Py_BUILD_CORE */   #endif /* Py_ENABLE_SHARED */  /* If no external linkage macros defined by now, create defaults */ | 
