[uniscribe] Whitelist function type cast
This commit is contained in:
parent
6e1c3eaf70
commit
9a1df82e3f
|
@ -215,9 +215,12 @@ struct hb_uniscribe_shaper_funcs_t
|
||||||
hinstLib = GetModuleHandle (TEXT ("usp10.dll"));
|
hinstLib = GetModuleHandle (TEXT ("usp10.dll"));
|
||||||
if (hinstLib)
|
if (hinstLib)
|
||||||
{
|
{
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||||
this->ScriptItemizeOpenType = (SIOT) GetProcAddress (hinstLib, "ScriptItemizeOpenType");
|
this->ScriptItemizeOpenType = (SIOT) GetProcAddress (hinstLib, "ScriptItemizeOpenType");
|
||||||
this->ScriptShapeOpenType = (SSOT) GetProcAddress (hinstLib, "ScriptShapeOpenType");
|
this->ScriptShapeOpenType = (SSOT) GetProcAddress (hinstLib, "ScriptShapeOpenType");
|
||||||
this->ScriptPlaceOpenType = (SPOT) GetProcAddress (hinstLib, "ScriptPlaceOpenType");
|
this->ScriptPlaceOpenType = (SPOT) GetProcAddress (hinstLib, "ScriptPlaceOpenType");
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
if (!this->ScriptItemizeOpenType ||
|
if (!this->ScriptItemizeOpenType ||
|
||||||
!this->ScriptShapeOpenType ||
|
!this->ScriptShapeOpenType ||
|
||||||
|
|
Loading…
Reference in New Issue