summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-12-22 22:05:51 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-12-22 22:05:51 (GMT)
commitf03eee12b405347189df3915b6dbd845c2690b77 (patch)
tree1c8724b5a0c725c312a2448cee05005cd0d1c698 /Modules/_decimal
parent66a6f3fa81698a3c28976cd59cef44bf25fb4937 (diff)
downloadcpython-f03eee12b405347189df3915b6dbd845c2690b77.zip
cpython-f03eee12b405347189df3915b6dbd845c2690b77.tar.gz
cpython-f03eee12b405347189df3915b6dbd845c2690b77.tar.bz2
Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h
index d745319..b7d4ff7 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"