shithub: freetype+ttf2subf

Download patch

ref: f76f7fdecdb14f343beb009dcef63a01b08162df
parent: 3273521f408938e0088258bda62d280d6e5967eb
author: Alexei Podtelezhnikov <[email protected]>
date: Tue Jul 28 19:13:51 EDT 2020

Hide internal functions with SunPro.

* include/freetype/internal/compiler-macros.h
(FT_INTERNAL_FUNCTION_ATTRIBUTE) <__SUNPRO_C>: Define as __hidden.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-07-28  Alexei Podtelezhnikov  <[email protected]>
+
+	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  <[email protected]>
 
 	Fix static compilation with Visual C.
--- a/include/freetype/internal/compiler-macros.h
+++ b/include/freetype/internal/compiler-macros.h
@@ -115,6 +115,11 @@
 #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