blob: 44bcc61df65f08955cfac9cfe53e4041d324dee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff --git a/third_party/freetype2/include/ftconfig.h b/third_party/freetype2/include/ftconfig.h
index 9ea3546..16f8854 100644
--- a/third_party/freetype2/include/ftconfig.h
+++ b/third_party/freetype2/include/ftconfig.h
@@ -397,9 +397,9 @@ FT_BEGIN_HEADER
#ifndef FT_EXPORT
#ifdef __cplusplus
-#define FT_EXPORT( x ) extern "C" x
+#define FT_EXPORT( x ) __attribute__((visibility("default"))) extern "C" x
#else
-#define FT_EXPORT( x ) extern x
+#define FT_EXPORT( x ) __attribute__((visibility("default"))) extern x
#endif
#endif /* !FT_EXPORT */
@@ -408,9 +408,9 @@ FT_BEGIN_HEADER
#ifndef FT_EXPORT_DEF
#ifdef __cplusplus
-#define FT_EXPORT_DEF( x ) extern "C" x
+#define FT_EXPORT_DEF( x ) __attribute__((visibility("default"))) extern "C" x
#else
-#define FT_EXPORT_DEF( x ) extern x
+#define FT_EXPORT_DEF( x ) __attribute__((visibility("default"))) extern x
#endif
#endif /* !FT_EXPORT_DEF */
|