[PATCH] gdi32: Fix building with versions of fontconfig < 2.11.0.

Huw Davies huw at codeweavers.com
Wed Dec 19 05:01:35 CST 2018


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46296
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/gdi32/freetype.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index e07aadaa1d..ebecf79ee1 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -184,7 +184,13 @@ MAKE_FUNCPTR(FcPatternDestroy);
 MAKE_FUNCPTR(FcPatternGetBool);
 MAKE_FUNCPTR(FcPatternGetInteger);
 MAKE_FUNCPTR(FcPatternGetString);
+#ifndef FC_NAMELANG
+#define FC_NAMELANG "namelang"
 #endif
+#ifndef FC_PRGNAME
+#define FC_PRGNAME "prgname"
+#endif
+#endif /* SONAME_LIBFONTCONFIG */
 
 #undef MAKE_FUNCPTR
 
-- 
2.17.1




More information about the wine-devel mailing list