[Python-checkins] cpython (3.3): Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.

stefan.krah python-checkins at python.org
Sat Dec 22 23:09:38 CET 2012


http://hg.python.org/cpython/rev/ccc372b37fbb
changeset:   80982:ccc372b37fbb
branch:      3.3
parent:      80980:93902bd37f48
user:        Stefan Krah <skrah at bytereef.org>
date:        Sat Dec 22 23:05:51 2012 +0100
summary:
  Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.

files:
  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
--- a/Modules/_decimal/libmpdec/mpdecimal.h
+++ b/Modules/_decimal/libmpdec/mpdecimal.h
@@ -70,7 +70,8 @@
   #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"

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list