diff options
author | Ian Lynagh <igloo@earth.li> | 2010-09-05 12:24:42 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-09-05 12:24:42 +0000 |
commit | a96a75363ddcafadde65b294aa7c1275d48dd463 (patch) | |
tree | 949dda6ab8621e6dfff4b9308cf1c150a7c9092f /rts/BeginPrivate.h | |
parent | 7d56ff6e8c44e390bf95a4da9ce8a3330ccd7859 (diff) | |
download | haskell-a96a75363ddcafadde65b294aa7c1275d48dd463.tar.gz |
Don't set visibility on Windows
With gcc 4.5.0-1, using visibility hidden gives:
error: visibility attribute not supported in this configuration; ignored
Diffstat (limited to 'rts/BeginPrivate.h')
-rw-r--r-- | rts/BeginPrivate.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rts/BeginPrivate.h b/rts/BeginPrivate.h index 4d7b121ad3..6a7ca5fb8f 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 __GNUC__ >= 4 && !defined(freebsd_HOST_OS) && !defined(mingw32_HOST_OS) #pragma GCC visibility push(hidden) #endif |