summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2020-07-28 23:13:51 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2020-07-28 23:13:51 -0400
commitf76f7fdecdb14f343beb009dcef63a01b08162df (patch)
treea236b5ba28904329d155b5bf04449d01ecc5a957
parent3273521f408938e0088258bda62d280d6e5967eb (diff)
downloadfreetype2-f76f7fdecdb14f343beb009dcef63a01b08162df.tar.gz
Hide internal functions with SunPro.
* include/freetype/internal/compiler-macros.h (FT_INTERNAL_FUNCTION_ATTRIBUTE) <__SUNPRO_C>: Define as __hidden.
-rw-r--r--ChangeLog7
-rw-r--r--include/freetype/internal/compiler-macros.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 18313c1e9..e96ec6101 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Hide internal functions with SunPro.
+
+ * include/freetype/internal/compiler-macros.h
+ (FT_INTERNAL_FUNCTION_ATTRIBUTE) <__SUNPRO_C>: Define as __hidden.
+
2020-07-28 Anuj Verma <anujv@iitbhilai.ac.in>
Fix static compilation with Visual C.
diff --git a/include/freetype/internal/compiler-macros.h b/include/freetype/internal/compiler-macros.h
index 8ed3d1178..f0002e5ae 100644
--- a/include/freetype/internal/compiler-macros.h
+++ b/include/freetype/internal/compiler-macros.h
@@ -115,6 +115,11 @@ FT_BEGIN_HEADER
#define FT_INTERNAL_FUNCTION_ATTRIBUTE \
__attribute__(( visibility( "hidden" ) ))
+ /* Sun */
+#elif defined( __SUNPRO_C ) && __SUNPRO_C >= 0x550
+#define FT_INTERNAL_FUNCTION_ATTRIBUTE __hidden
+#endif
+
#else
#define FT_INTERNAL_FUNCTION_ATTRIBUTE /* empty */
#endif