Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Backport |
| 2 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 3 | |
| 4 | From c6040f618d8f2706a7b46d1cdf37d1a587f9701f Mon Sep 17 00:00:00 2001 |
| 5 | From: Andrew Stromnov <stromnov@gmail.com> |
| 6 | Date: Thu, 28 Nov 2013 16:58:43 +0400 |
| 7 | Subject: [PATCH] fix compiling with FreeType 2.5.1 |
| 8 | |
| 9 | --- |
| 10 | _imagingft.c | 4 ++++ |
| 11 | 1 file changed, 4 insertions(+) |
| 12 | |
| 13 | diff --git a/_imagingft.c b/_imagingft.c |
| 14 | index 47d50bd..f19555b 100644 |
| 15 | --- a/_imagingft.c |
| 16 | +++ b/_imagingft.c |
| 17 | @@ -59,7 +59,11 @@ struct { |
| 18 | const char* message; |
| 19 | } ft_errors[] = |
| 20 | |
| 21 | +#if defined(USE_FREETYPE_2_1) |
| 22 | +#include FT_ERRORS_H |
| 23 | +#else |
| 24 | #include <freetype/fterrors.h> |
| 25 | +#endif |
| 26 | |
| 27 | /* -------------------------------------------------------------------- */ |
| 28 | /* font objects */ |
| 29 | -- |
| 30 | 1.8.5.1 |