diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 15:28:55 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 15:28:55 +0000 |
commit | 6ba50a2001bcfa1b467f69985a002fc064d8c807 (patch) | |
tree | 286e3d8e4c7a3cd3b426563187a6c0f371c4538d /src/htsglobal.h | |
parent | 9315f64b6e8b6c1d986d90ffa207008d29b45c06 (diff) |
Added symbol visibility features to the build to hide internal symbols (GCC)
Diffstat (limited to 'src/htsglobal.h')
-rw-r--r-- | src/htsglobal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/htsglobal.h b/src/htsglobal.h index efbe97e..bd10b39 100644 --- a/src/htsglobal.h +++ b/src/htsglobal.h @@ -257,8 +257,14 @@ Please visit our Website: http://www.httrack.com #define HTSEXT_API __declspec(dllimport) #endif #else +/* See <http://gcc.gnu.org/wiki/Visibility> */ +#if ( ( defined(__GNUC__) && ( __GNUC__ >= 4 ) ) \ + || ( defined(HAVE_VISIBILITY) && HAVE_VISIBILITY ) ) +#define HTSEXT_API __attribute__ ((visibility ("default"))) +#else #define HTSEXT_API #endif +#endif #ifndef HTS_LONGLONG #ifdef HTS_NO_64_BIT |