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

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: -Wno-unused-function for clang only 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 */ 312 #if defined(_WIN32)
313 /* #define FT_EXPORT_DEF(x) x */ 313 #define FT_EXPORT(x) __declspec(dllexport) x
314 314 #define FT_EXPORT_DEF(x) __declspec(dllexport) x
bungeman-skia 2017/03/10 17:02:56 How are you getting away with using only dllexport
drott 2017/03/13 10:17:37 Thanks for pointing this out. I am not very famili
315 #else
316 #define FT_EXPORT(x) __attribute__((visibility ("default"))) x
317 #define FT_EXPORT_DEF(x) __attribute__((visibility ("default"))) x
318 #endif
315 319
316 /*************************************************************************/ 320 /*************************************************************************/
317 /* */ 321 /* */
318 /* Glyph Postscript Names handling */ 322 /* Glyph Postscript Names handling */
319 /* */ 323 /* */
320 /* By default, FreeType 2 is compiled with the `psnames' module. This */ 324 /* By default, FreeType 2 is compiled with the `psnames' module. This */
321 /* module is in charge of converting a glyph name string into a */ 325 /* module is in charge of converting a glyph name string into a */
322 /* Unicode value, or return a Macintosh standard glyph name for the */ 326 /* Unicode value, or return a Macintosh standard glyph name for the */
323 /* use with the TrueType `post' table. */ 327 /* use with the TrueType `post' table. */
324 /* */ 328 /* */
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 #error "Invalid CFF darkening parameters!" 964 #error "Invalid CFF darkening parameters!"
961 #endif 965 #endif
962 966
963 FT_END_HEADER 967 FT_END_HEADER
964 968
965 969
966 #endif /* FTOPTION_H_ */ 970 #endif /* FTOPTION_H_ */
967 971
968 972
969 /* END */ 973 /* 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