Chromium Code Reviews| 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 e2d22a877e5b7a40d5cf39c853b3fe42326b1bde..b481d8cfee784d1f41b0f4a7deac03e9dfd0ec22 100644 |
| --- a/third_party/freetype/include/freetype-custom-config/ftoption.h |
| +++ b/third_party/freetype/include/freetype-custom-config/ftoption.h |
| @@ -309,9 +309,13 @@ FT_BEGIN_HEADER |
| /* Do not #undef these macros here since the build system might define */ |
| /* them for certain configurations only. */ |
| /* */ |
| -/* #define FT_EXPORT(x) extern x */ |
| -/* #define FT_EXPORT_DEF(x) x */ |
| - |
| +#if defined(_WIN32) |
| +#define FT_EXPORT(x) __declspec(dllexport) x |
| +#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
|
| +#else |
| +#define FT_EXPORT(x) __attribute__((visibility ("default"))) x |
| +#define FT_EXPORT_DEF(x) __attribute__((visibility ("default"))) x |
| +#endif |
| /*************************************************************************/ |
| /* */ |