summaryrefslogtreecommitdiffstats
path: root/abs/extra/libgdiplus/libgdiplus-2.10.9-freetype25.patch
blob: bd359f4e793fb737be894b009e9c9e9251464cad (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
25
26
commit 180c02e0f2a2016eba8520b456ca929e9dcf03db
Author: Jo Shields <directhex@apebox.org>
Date:   Mon Dec 16 09:24:57 2013 +0000

    Use FreeType macros for tttables.h inclusion
    
    As of FreeType 2.1.6 (November 2003), using #include to include Freetype libraries directly is not supported.
    
    This has come to a head, as in FreeType 2.5.0, the location of headers has been moved around, breaking building of libgdiplus.
    
    This slight change uses the "official" way to include the required header file, without breaking building on older versions of the library.

diff --git a/src/gdiplus-private.h b/src/gdiplus-private.h
index 59edf9e..dfccc02 100644
--- a/src/gdiplus-private.h
+++ b/src/gdiplus-private.h
@@ -30,7 +30,8 @@
 #include <stdio.h>
 #include <math.h>
 #include <glib.h>
-#include <freetype/tttables.h>
+#include <ft2build.h>
+#include FT_TRUETYPE_TABLES_H
 #include <pthread.h>
 #include <unistd.h>