vcpkg/ports/harfbuzz/0002-fix-uwp-build.patch

16 lines
355 B
Diff
Raw Normal View History

diff --git a/src/hb-ft.cc b/src/hb-ft.cc
index 1900f30..add9917 100644
--- a/src/hb-ft.cc
+++ b/src/hb-ft.cc
2017-05-29 12:26:27 +03:00
@@ -31,6 +31,10 @@
2017-05-29 12:26:27 +03:00
#include "hb-ft.h"
2017-05-29 12:26:27 +03:00
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
+#define generic GenericFromFreeTypeLibrary
+#endif
+
#include "hb-font.hh"
#include "hb-machinery.hh"
#include "hb-cache.hh"