From 952e5a908c13afce928ccaa36b47362225eaf1ac Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 15 Oct 2015 14:59:37 +0200 Subject: [PATCH] Fix variadic args macro for Visual Studio. --- coreapi/vtables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/vtables.c b/coreapi/vtables.c index 988e29e8b..5c6a82dcb 100644 --- a/coreapi/vtables.c +++ b/coreapi/vtables.c @@ -55,13 +55,13 @@ static void cleanup_dead_vtable_refs(LinphoneCore *lc){ } } -#define NOTIFY_IF_EXIST(function_name, args...) \ +#define NOTIFY_IF_EXIST(function_name, ...) \ MSList* iterator; \ VTableReference *ref; \ bool_t has_cb = FALSE; \ for (iterator=lc->vtable_refs; iterator!=NULL; iterator=iterator->next)\ if ((ref=(VTableReference*)iterator->data)->valid && (lc->current_vtable=ref->vtable)->function_name) {\ - lc->current_vtable->function_name(args);\ + lc->current_vtable->function_name(__VA_ARGS__);\ has_cb = TRUE;\ }\ if (has_cb) ms_message("Linphone core [%p] notifying [%s]",lc,#function_name)