diff -ur freetype-2.10.1.orig/builds/unix/ftconfig.in freetype-2.10.1/builds/unix/ftconfig.in --- freetype-2.10.1.orig/builds/unix/ftconfig.in 2019-02-23 04:06:06.000000000 -0500 +++ freetype-2.10.1/builds/unix/ftconfig.in 2019-10-13 16:10:52.000000000 -0400 @@ -488,7 +488,7 @@ #ifdef FT2_BUILD_LIBRARY #if defined( _WIN32 ) && defined( DLL_EXPORT ) -#define FT_EXPORT( x ) __declspec( dllexport ) x +#define FT_EXPORT( x ) x #elif defined( __GNUC__ ) && __GNUC__ >= 4 #define FT_EXPORT( x ) __attribute__(( visibility( "default" ) )) x #elif defined( __SUNPRO_C ) && __SUNPRO_C >= 0x550 diff -ur freetype-2.10.1.orig/include/freetype/config/ftconfig.h freetype-2.10.1/include/freetype/config/ftconfig.h --- freetype-2.10.1.orig/include/freetype/config/ftconfig.h 2019-02-23 04:06:06.000000000 -0500 +++ freetype-2.10.1/include/freetype/config/ftconfig.h 2019-10-13 16:12:48.000000000 -0400 @@ -460,7 +460,7 @@ #ifdef FT2_BUILD_LIBRARY #if defined( _WIN32 ) && defined( DLL_EXPORT ) -#define FT_EXPORT( x ) __declspec( dllexport ) x +#define FT_EXPORT( x ) x #elif defined( __GNUC__ ) && __GNUC__ >= 4 #define FT_EXPORT( x ) __attribute__(( visibility( "default" ) )) x #elif defined( __SUNPRO_C ) && __SUNPRO_C >= 0x550