Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghostscript: fix build w/ freetype 2.10.3
- Loading branch information
1 parent
7661cbb
commit 90e5289
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Provide FT_CALLBACK_DEF macro removed from | ||
<freetype/config/ftconfig.h> in freetype 2.10.3 | ||
https://trac.macports.org/ticket/61306 | ||
|
||
--- base/fapi_ft.c.orig | ||
+++ base/fapi_ft.c | ||
@@ -124,6 +124,14 @@ | ||
static void | ||
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) |