diff options
Diffstat (limited to 'app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch')
-rw-r--r-- | app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch new file mode 100644 index 000000000000..59d9ae0095f7 --- /dev/null +++ b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch @@ -0,0 +1,20 @@ +https://bugs.ghostscript.com/show_bug.cgi?id=702985 +https://bugs.gentoo.org/747808 + +--- ghostscript-9.53.3/base/fapi_ft.c ++++ ghostscript-9.53.3/base/fapi_ft.c +@@ -125,6 +125,14 @@ + delete_inc_int_info(gs_fapi_server * a_server, + FT_IncrementalRec * a_inc_int_info); + ++#ifndef FT_CALLBACK_DEF ++#ifdef __cplusplus ++#define FT_CALLBACK_DEF( x ) extern "C" x ++#else ++#define FT_CALLBACK_DEF( x ) static x ++#endif ++#endif ++ + FT_CALLBACK_DEF(void *) + FF_alloc(FT_Memory memory, long size) + { |