From bd5a85a4e75499c882af073f3fd7da8f16f7cd36 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Oct 2018 08:40:25 +0530 Subject: [PATCH] Fix compilation on ancient linux distros --- kitty/freetype.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/freetype.c b/kitty/freetype.c index bc07c642e..80a5e3135 100644 --- a/kitty/freetype.c +++ b/kitty/freetype.c @@ -16,6 +16,10 @@ #define HARFBUZZ_HAS_CHANGE_FONT #endif +#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR < 7 +#define FT_Bitmap_Init FT_Bitmap_New +#endif + #include FT_FREETYPE_H #include FT_BITMAP_H typedef struct {