[PATCH 15/18] widl: do not output 'inline' function specifier when type is a function pointer
Richard Pospesel
richard at torproject.org
Wed Jun 5 20:34:12 CDT 2019
Signed-off-by: Richard Pospesel <richard at torproject.org>
---
tools/widl/header.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/widl/header.c b/tools/widl/header.c
index 20bc18167a..765b546793 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -510,7 +510,7 @@ static void write_type_v(FILE *h, const decl_spec_t *ds, int is_field, int declo
int i;
const char *callconv = get_attrp(pt->attrs, ATTR_CALLCONV);
if (!callconv && is_object_interface) callconv = "STDMETHODCALLTYPE";
- if (dpt->funcspecifier == FUNCTION_SPECIFIER_INLINE) fprintf(h, "inline ");
+ if (!is_ptr(ds->type) && dpt->funcspecifier == FUNCTION_SPECIFIER_INLINE) fprintf(h, "inline ");
write_declspec_left(h, type_function_get_retdeclspec(pt), NAME_DEFAULT, declonly);
fputc(' ', h);
if (ptr_level) fputc('(', h);
--
2.17.1
More information about the wine-devel
mailing list