]> granicus.if.org Git - libass/commitdiff
directwrite: fix syntax error with MSVC.
authortorque <torque@1>
Sun, 13 Sep 2015 19:13:40 +0000 (12:13 -0700)
committertorque <torque@1>
Thu, 17 Sep 2015 20:25:06 +0000 (13:25 -0700)
MSVC requires the calling convention to be grouped with the identifier when
defining a callback type.

libass/ass_directwrite.c

index f11deb6f75f08701fb97574831e9ce9514dcc4ed..066629d522a719a18932388081c69cdb44479d60 100644 (file)
@@ -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