summaryrefslogtreecommitdiff
path: root/graphics/py-sk1libs/patches/patch-src_imaging_libimagingft___imagingft.c
blob: de9e158e6fbacd745539b1981a7dfc503ac41fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-src_imaging_libimagingft___imagingft.c,v 1.1 2014/03/22 15:57:07 spz Exp $

make it deal gracefully with both freetype 2.4.* and 2.5.*

--- src/imaging/libimagingft/_imagingft.c.orig	2009-11-01 00:44:12.000000000 +0000
+++ src/imaging/libimagingft/_imagingft.c
@@ -70,7 +70,14 @@ struct {
     const char* message;
 } ft_errors[] =
 
+#if defined(USE_FREETYPE_2_1)
+/* freetype 2.1 and newer */
+#include <ft2build.h>
+#include FT_ERRORS_H
+#else
+/* freetype 2.0 */
 #include <freetype/fterrors.h>
+#endif
 
 /* -------------------------------------------------------------------- */
 /* font objects */