From: torque Date: Sun, 13 Sep 2015 19:13:40 +0000 (-0700) Subject: directwrite: fix syntax error with MSVC. X-Git-Tag: 0.13.0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11d5bdc0175e1debeddfb807e523927f07ee07bc;p=libass directwrite: fix syntax error with MSVC. MSVC requires the calling convention to be grouped with the identifier when defining a callback type. --- diff --git a/libass/ass_directwrite.c b/libass/ass_directwrite.c index f11deb6..066629d 100644 --- a/libass/ass_directwrite.c +++ b/libass/ass_directwrite.c @@ -650,7 +650,7 @@ static ASS_FontProviderFuncs directwrite_callbacks = { .get_fallback = get_fallback, }; -typedef HRESULT WINAPI (*DWriteCreateFactoryFn)( +typedef HRESULT (WINAPI *DWriteCreateFactoryFn)( _In_ DWRITE_FACTORY_TYPE factoryType, _In_ REFIID iid, _Out_ IUnknown **factory