diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-12-22 23:05:51 +0100 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-12-22 23:05:51 +0100 |
commit | 8dca3e84755755bd8841e6fb8c27b3d9342d3994 (patch) | |
tree | 077e75f91108af5e05a283f714d001dab9fdbcd4 /Modules/_decimal | |
parent | e05364f2abb7cbaee3e53d86a95f97465d8dde41 (diff) | |
download | cpython-8dca3e84755755bd8841e6fb8c27b3d9342d3994.tar.gz |
Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.
Diffstat (limited to 'Modules/_decimal')
-rw-r--r-- | Modules/_decimal/libmpdec/mpdecimal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index d745319012..b7d4ff7014 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.h +++ b/Modules/_decimal/libmpdec/mpdecimal.h @@ -70,7 +70,8 @@ extern "C" { #else #define UNUSED #endif - #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__INTEL_COMPILER) + #if (defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)) && \ + defined(__GNUC__) && __GNUC__ >= 4 && !defined(__INTEL_COMPILER) #define MPD_PRAGMA(x) _Pragma(x) #define MPD_HIDE_SYMBOLS_START "GCC visibility push(hidden)" #define MPD_HIDE_SYMBOLS_END "GCC visibility pop" |