Fix building evolution-data-server with cmake-3.20.1
[linux_from_scratch_patches.git] / ghostscript / ghostscript-9.53.3-freetype_fix-1.patch
blob66b5f6556f46b01fcd18fe412d6349806e88a0eb
1 Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
2 Date: 2020-10-20
3 Initial Package Version: 9.53.3
4 Upstream Status: Applied
5 Origin: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=41ef9a0bc36b#patch1
6 Description: Fixes build failure with freetype-2.10.3 and later.
8 diff --git a/base/fapi_ft.c b/base/fapi_ft.c
9 index 65fa6dc..21aef2f 100644 (file)
10 --- a/base/fapi_ft.c
11 +++ b/base/fapi_ft.c
12 @@ -125,7 +125,7 @@ static void
13 delete_inc_int_info(gs_fapi_server * a_server,
14 FT_IncrementalRec * a_inc_int_info);
16 -FT_CALLBACK_DEF(void *)
17 +static void *
18 FF_alloc(FT_Memory memory, long size)
20 gs_memory_t *mem = (gs_memory_t *) memory->user;
21 @@ -133,7 +133,7 @@ FF_alloc(FT_Memory memory, long size)
22 return (gs_malloc(mem, size, 1, "FF_alloc"));
25 -FT_CALLBACK_DEF(void *)
26 +static void *
27 FF_realloc(FT_Memory memory, long cur_size, long new_size, void *block)
29 gs_memory_t *mem = (gs_memory_t *) memory->user;
30 @@ -153,7 +153,7 @@ FT_CALLBACK_DEF(void *)
31 return (tmp);
34 -FT_CALLBACK_DEF(void)
35 +static void
36 FF_free(FT_Memory memory, void *block)
38 gs_memory_t *mem = (gs_memory_t *) memory->user;