From b6fff39114fee90b806ed2e29cc8f5d9728d85a8 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 23 Nov 2010 17:05:41 +0000 Subject: Add a configure test for the visibility hidden attribute --- rts/BeginPrivate.h | 2 +- rts/EndPrivate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rts') diff --git a/rts/BeginPrivate.h b/rts/BeginPrivate.h index 6a7ca5fb8f..6471b92a40 100644 --- a/rts/BeginPrivate.h +++ b/rts/BeginPrivate.h @@ -5,6 +5,6 @@ /* On Windows, with gcc 4.5.0-1, using visibility hidden gives: error: visibility attribute not supported in this configuration; ignored */ -#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS) && !defined(mingw32_HOST_OS) +#if defined(HAS_VISIBILITY_HIDDEN) && !defined(freebsd_HOST_OS) #pragma GCC visibility push(hidden) #endif diff --git a/rts/EndPrivate.h b/rts/EndPrivate.h index f0080beee5..4cfb68f0ba 100644 --- a/rts/EndPrivate.h +++ b/rts/EndPrivate.h @@ -1,3 +1,3 @@ -#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS) && !defined(mingw32_HOST_OS) +#if defined(HAS_VISIBILITY_HIDDEN) && !defined(freebsd_HOST_OS) #pragma GCC visibility pop #endif -- cgit v1.2.1