summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hb-uniscribe.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc
index 8e9fda26..31c50dfe 100644
--- a/src/hb-uniscribe.cc
+++ b/src/hb-uniscribe.cc
@@ -215,9 +215,12 @@ struct hb_uniscribe_shaper_funcs_t
hinstLib = GetModuleHandle (TEXT ("usp10.dll"));
if (hinstLib)
{
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wcast-function-type"
this->ScriptItemizeOpenType = (SIOT) GetProcAddress (hinstLib, "ScriptItemizeOpenType");
this->ScriptShapeOpenType = (SSOT) GetProcAddress (hinstLib, "ScriptShapeOpenType");
this->ScriptPlaceOpenType = (SPOT) GetProcAddress (hinstLib, "ScriptPlaceOpenType");
+#pragma GCC diagnostic pop
}
if (!this->ScriptItemizeOpenType ||
!this->ScriptShapeOpenType ||