X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FBeginPrivate.h;h=6471b92a407638f69c02d4cb302c401558e678a2;hb=fff1f6194c3c39de53cd645bda9865fb131b1c68;hp=4d7b121ad35803430b786afa6336aa64bf7fb03d;hpb=28c2bbb03ff6144f3a09e5286c8c3ca6ad3689e8;p=ghc-hetmet.git diff --git a/rts/BeginPrivate.h b/rts/BeginPrivate.h index 4d7b121..6471b92 100644 --- a/rts/BeginPrivate.h +++ b/rts/BeginPrivate.h @@ -2,6 +2,9 @@ "undefined reference" errors at link-time. The true reasons are unknown, however FreeBSD 8.x includes GCC 4.2.1 in the base system, which might be buggy. */ -#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS) +/* On Windows, with gcc 4.5.0-1, using visibility hidden gives: + error: visibility attribute not supported in this configuration; ignored + */ +#if defined(HAS_VISIBILITY_HIDDEN) && !defined(freebsd_HOST_OS) #pragma GCC visibility push(hidden) #endif