Commit | Line | Data |
---|---|---|
9337c16c MB |
1 | Fix build with FreeType 2.10.3 and newer. |
2 | ||
3 | Taken from upstream: | |
4 | https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=41ef9a0bc36b9db7115fbe9623f989bfb47bbade | |
5 | ||
6 | diff --git a/base/fapi_ft.c b/base/fapi_ft.c | |
7 | --- a/base/fapi_ft.c | |
8 | +++ b/base/fapi_ft.c | |
9 | @@ -125,7 +125,7 @@ static void | |
10 | delete_inc_int_info(gs_fapi_server * a_server, | |
11 | FT_IncrementalRec * a_inc_int_info); | |
12 | ||
13 | -FT_CALLBACK_DEF(void *) | |
14 | +static void * | |
15 | FF_alloc(FT_Memory memory, long size) | |
16 | { | |
17 | gs_memory_t *mem = (gs_memory_t *) memory->user; | |
18 | @@ -133,7 +133,7 @@ FF_alloc(FT_Memory memory, long size) | |
19 | return (gs_malloc(mem, size, 1, "FF_alloc")); | |
20 | } | |
21 | ||
22 | -FT_CALLBACK_DEF(void *) | |
23 | +static void * | |
24 | FF_realloc(FT_Memory memory, long cur_size, long new_size, void *block) | |
25 | { | |
26 | gs_memory_t *mem = (gs_memory_t *) memory->user; | |
27 | @@ -153,7 +153,7 @@ FT_CALLBACK_DEF(void *) | |
28 | return (tmp); | |
29 | } | |
30 | ||
31 | -FT_CALLBACK_DEF(void) | |
32 | +static void | |
33 | FF_free(FT_Memory memory, void *block) | |
34 | { | |
35 | gs_memory_t *mem = (gs_memory_t *) memory->user; |