Commit a96a7536 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

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
parent 7d56ff6e
......@@ -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
#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS)
#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS) && !defined(mingw32_HOST_OS)
#pragma GCC visibility pop
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment