summaryrefslogtreecommitdiff
path: root/src/htsglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/htsglobal.h')
-rw-r--r--src/htsglobal.h6
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