summaryrefslogtreecommitdiffstats
path: root/patches/Imaging-1.1.7/0002-fix-compiling-with-FreeType-2.5.1.patch
blob: ef5f2649b763eafd485ef871642691015e4e5c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Andrew Stromnov <stromnov@gmail.com>
Date: Thu, 28 Nov 2013 16:58:43 +0400
Subject: [PATCH] fix compiling with FreeType 2.5.1

---
 _imagingft.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/_imagingft.c b/_imagingft.c
index 9358087..3ab1cbe 100644
--- a/_imagingft.c
+++ b/_imagingft.c
@@ -70,7 +70,11 @@ struct {
     const char* message;
 } ft_errors[] =
 
+#if defined(USE_FREETYPE_2_1)
+#include FT_ERRORS_H
+#else
 #include <freetype/fterrors.h>
+#endif
 
 /* -------------------------------------------------------------------- */
 /* font objects */