Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/freetype/include/freetype-custom-config/ftoption.h

Issue 2738383002: Manage FreeType symbol visibility using platform specific FT_EXPORT (Closed)
Patch Set: Improve windows visibility matching Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/freetype/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* ftoption.h */ 3 /* ftoption.h */
4 /* */ 4 /* */
5 /* User-selectable configuration macros (specification only). */ 5 /* User-selectable configuration macros (specification only). */
6 /* */ 6 /* */
7 /* Copyright 1996-2017 by */ 7 /* Copyright 1996-2017 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */ 9 /* */
10 /* This file is part of the FreeType project, and may only be used, */ 10 /* This file is part of the FreeType project, and may only be used, */
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 /* } */ 302 /* } */
303 /* */ 303 /* */
304 /* You can provide your own implementation of FT_EXPORT and */ 304 /* You can provide your own implementation of FT_EXPORT and */
305 /* FT_EXPORT_DEF here if you want. If you leave them undefined, they */ 305 /* FT_EXPORT_DEF here if you want. If you leave them undefined, they */
306 /* will be later automatically defined as `extern return_type' to */ 306 /* will be later automatically defined as `extern return_type' to */
307 /* allow normal compilation. */ 307 /* allow normal compilation. */
308 /* */ 308 /* */
309 /* Do not #undef these macros here since the build system might define */ 309 /* Do not #undef these macros here since the build system might define */
310 /* them for certain configurations only. */ 310 /* them for certain configurations only. */
311 /* */ 311 /* */
312 /* #define FT_EXPORT(x) extern x */
313 /* #define FT_EXPORT_DEF(x) x */
314 312
313 #if defined(_WIN32)
314
315 #if defined(FT2_BUILD_DLL)
316 #if defined(FT2_BUILD_LIBRARY)
317 #define FT_EXPORT(x) __declspec(dllexport) x
318 #define FT_EXPORT_DEF(x) __declspec(dllexport) x
319 #else
320 #define FT_EXPORT(x) __declspec(dllimport) x
321 #define FT_EXPORT_DEF(x) __declspec(dllimport) x
322 #endif
323 #endif
324
325 #else
326 #define FT_EXPORT(x) __attribute__((visibility ("default"))) x
327 #define FT_EXPORT_DEF(x) __attribute__((visibility ("default"))) x
328 #endif
315 329
316 /*************************************************************************/ 330 /*************************************************************************/
317 /* */ 331 /* */
318 /* Glyph Postscript Names handling */ 332 /* Glyph Postscript Names handling */
319 /* */ 333 /* */
320 /* By default, FreeType 2 is compiled with the `psnames' module. This */ 334 /* By default, FreeType 2 is compiled with the `psnames' module. This */
321 /* module is in charge of converting a glyph name string into a */ 335 /* module is in charge of converting a glyph name string into a */
322 /* Unicode value, or return a Macintosh standard glyph name for the */ 336 /* Unicode value, or return a Macintosh standard glyph name for the */
323 /* use with the TrueType `post' table. */ 337 /* use with the TrueType `post' table. */
324 /* */ 338 /* */
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 #error "Invalid CFF darkening parameters!" 974 #error "Invalid CFF darkening parameters!"
961 #endif 975 #endif
962 976
963 FT_END_HEADER 977 FT_END_HEADER
964 978
965 979
966 #endif /* FTOPTION_H_ */ 980 #endif /* FTOPTION_H_ */
967 981
968 982
969 /* END */ 983 /* END */
OLDNEW
« no previous file with comments | « third_party/freetype/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698