From f03eee12b405347189df3915b6dbd845c2690b77 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Sat, 22 Dec 2012 23:05:51 +0100 Subject: [PATCH] Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD. --- Modules/_decimal/libmpdec/mpdecimal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index d745319012a..b7d4ff70144 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"