summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Weber <tweber@debian.org>2017-10-21 21:52:45 +0200
committerThomas Weber <tweber@debian.org>2017-10-21 21:52:45 +0200
commit2b29d487d2a2e745dfe457e48c3aa85546022ddf (patch)
treeb9e987a789ccb3ce688f9fa4b0b822f9bfa36677 /include
parentaaba2cff70d8a114255d1855e223f9912a8c2931 (diff)
downloadlcms2-2b29d487d2a2e745dfe457e48c3aa85546022ddf.tar.gz
Revert "revert "-fvisibility=hidden""
This reverts commit 4ce2fee79c35465b9f182a2e55b7b703a5e60594. Further work on the ax_gcc_func_attribute.m4 will allow this to work on OSX.
Diffstat (limited to 'include')
-rw-r--r--include/lcms2.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/lcms2.h b/include/lcms2.h
index cded99c..6f5df13 100644
--- a/include/lcms2.h
+++ b/include/lcms2.h
@@ -23,7 +23,7 @@
//
//---------------------------------------------------------------------------------
//
-// Version 2.9rc2
+// Version 2.9b1
//
#ifndef _lcms2_H
@@ -235,8 +235,13 @@ typedef int cmsBool;
# define CMSAPI
# endif
#else // not Windows
+# ifdef HAVE_FUNC_ATTRIBUTE_VISIBILITY
+# define CMSEXPORT
+# define CMSAPI __attribute__((visibility("default")))
+# else
# define CMSEXPORT
# define CMSAPI
+# endif
#endif // CMS_IS_WINDOWS_
#ifdef HasTHREADS