Index: third_party/freetype/include/freetype-custom-config/ftoption.h |
diff --git a/third_party/freetype/include/freetype-custom-config/ftoption.h b/third_party/freetype/include/freetype-custom-config/ftoption.h |
index 49e8cf573e6e8d73b8eeb353f2cd447bf99897b1..afa3c60b0fb0bec152e72afcd490758ce7cea3ae 100644 |
--- a/third_party/freetype/include/freetype-custom-config/ftoption.h |
+++ b/third_party/freetype/include/freetype-custom-config/ftoption.h |
@@ -323,8 +323,13 @@ FT_BEGIN_HEADER |
#endif |
#else |
+#if !defined(MAC_RESTRICT_VISIBILITY) |
#define FT_EXPORT(x) __attribute__((visibility ("default"))) x |
#define FT_EXPORT_DEF(x) __attribute__((visibility ("default"))) x |
+#else |
+#define FT_EXPORT(x) x |
+#define FT_EXPORT_DEF(x) x |
+#endif |
#endif |
/*************************************************************************/ |