Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.

This commit is contained in:
Stefan Krah 2012-12-22 23:05:51 +01:00
parent 66a6f3fa81
commit f03eee12b4
1 changed files with 2 additions and 1 deletions

View File

@ -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"