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 | |
| 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
| -rw-r--r-- | rts/BeginPrivate.h | 5 | ||||
| -rw-r--r-- | rts/EndPrivate.h | 2 |
2 files changed, 5 insertions, 2 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 diff --git a/rts/EndPrivate.h b/rts/EndPrivate.h index 1d8a6b4208..f0080beee5 100644 --- a/rts/EndPrivate.h +++ b/rts/EndPrivate.h @@ -1,3 +1,3 @@ -#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS) +#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS) && !defined(mingw32_HOST_OS) #pragma GCC visibility pop #endif |
