diff options
author | vvvv <vvvv@yandex-team.ru> | 2022-02-10 16:46:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:37 +0300 |
commit | a693106aae8a3a3c7236a4ae953058a9611d7a92 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /contrib/tools/python/src | |
parent | ad94e93a059747f4fc3d7add88d1a83daf40b733 (diff) | |
download | ydb-a693106aae8a3a3c7236a4ae953058a9611d7a92.tar.gz |
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 2 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 d5379b8331..ad2ff5929a 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 */ |