diff options
author | Zach van Rijn <me@zv.io> | 2022-02-05 02:08:48 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:33:57 -0500 |
commit | 375e8cd42602eedf028f5421cf39020af9822131 (patch) | |
tree | cbaaceb9eacc2db6e10a8dd4302e547a1670776f /user/gnu-ghostscript/ft-callback-def.patch | |
parent | aa4aebe0fe4183260aab1a9a4c439a420a9650a4 (diff) | |
download | packages-375e8cd42602eedf028f5421cf39020af9822131.tar.gz packages-375e8cd42602eedf028f5421cf39020af9822131.tar.bz2 packages-375e8cd42602eedf028f5421cf39020af9822131.tar.xz packages-375e8cd42602eedf028f5421cf39020af9822131.zip |
user/gnu-ghostscript: patch freetype macro assumption. fixes #493.
Diffstat (limited to 'user/gnu-ghostscript/ft-callback-def.patch')
-rw-r--r-- | user/gnu-ghostscript/ft-callback-def.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/user/gnu-ghostscript/ft-callback-def.patch b/user/gnu-ghostscript/ft-callback-def.patch new file mode 100644 index 000000000..0bec225c9 --- /dev/null +++ b/user/gnu-ghostscript/ft-callback-def.patch @@ -0,0 +1,19 @@ +https://gitlab.kitware.com/vtk/vtk/-/issues/18033 + +diff -ur a/base/fapi_ft.c b/base/fapi_ft.c +--- a/base/fapi_ft.c 2022-02-05 02:01:29.370000000 +0000 ++++ b/base/fapi_ft.c 2022-02-05 02:03:31.520000000 +0000 +@@ -1,3 +1,13 @@ ++/* FT_CALLBACK_DEF no longer exported since freetype-2.10.3 */ ++/* has been moved to <freetype/internal/compiler-macros.h> */ ++# 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 */ ++ + /* Copyright (C) 2001-2012 Artifex Software, Inc. + All Rights Reserved. + |