Don't set visibility on Windows
authorIan Lynagh <igloo@earth.li>
Sun, 5 Sep 2010 12:24:42 +0000 (12:24 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 5 Sep 2010 12:24:42 +0000 (12:24 +0000)
With gcc 4.5.0-1, using visibility hidden gives:
    error: visibility attribute not supported in this configuration; ignored

rts/BeginPrivate.h
rts/EndPrivate.h

index 4d7b121..6a7ca5f 100644 (file)
@@ -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
index 1d8a6b4..f0080be 100644 (file)
@@ -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