From 537eddbc407d891430d9f4a2d462c6c3c0753307 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 10 May 2017 13:46:58 -0700 Subject: Define YYMALLOCARGTYPE appropriately. Define it, so the generated parser knows what argument type the function passed to MateParserAlloc() takes. Use it when declaring MateParserAlloc(). Change-Id: Ice18fd6b5fdbdb31f527e5d6eb06e78594d4565b Reviewed-on: https://code.wireshark.org/review/21588 Reviewed-by: Guy Harris --- plugins/mate/mate.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mate/mate.h b/plugins/mate/mate.h index 0dc0bcaff5..1d97ca85bb 100644 --- a/plugins/mate/mate.h +++ b/plugins/mate/mate.h @@ -382,10 +382,11 @@ extern gboolean mate_load_config(const gchar* filename, mate_config* mc); /* Constructor/Destructor prototypes for Lemon Parser */ #if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 16)) -void *MateParserAlloc(void* (*)(gsize)); +#define YYMALLOCARGTYPE gsize #else -void *MateParserAlloc(void* (*)(gulong)); +#define YYMALLOCARGTYPE gulong #endif +void *MateParserAlloc(void* (*)(YYMALLOCARGTYPE)); void MateParserFree(void*, void (*)(void *)); void MateParser(void*, int, gchar*, mate_config*); -- cgit v1.2.3