8000 bpo-11410: Standardize and use symbol visibility attributes across POSIX and Windows. by vsajip · Pull Request #16347 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-11410: Standardize and use symbol visibility attributes across POSIX and Windows. #16347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added a definition for non-clang compilers.
  • Loading branch information
vsajip committed Oct 14, 2019
commit 886a68ed1b26151e54d295fab6f83318a11cabb0
3 changes: 3 additions & 0 deletions Include/exports.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
* we may still need to support gcc >= 4, as some Ubuntu LTS and Centos versions
* have 4 < gcc < 5.
*/
#ifndef __has_attribute
#define __has_attribute(x) 0 // Compatibility with non-clang compilers.
#endif
#if (defined(__GNUC__) && (__GNUC__ >= 4)) ||\
(defined(__clang__) && __has_attribute(visibility))
#define Py_IMPORTED_SYMBOL __attribute__ ((visibility ("default")))
Expand Down
0