From 99e418be932a4b2ef5b460a3f4ec20308bae9eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= <jeanmichael.celerier@gmail.com> Date: Sat, 1 Aug 2020 11:35:36 +0200 Subject: [PATCH] More standard way to support variadic macros Else this does not seem to build with MSVC 2019 --- pd/src/m_pd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/src/m_pd.h b/pd/src/m_pd.h index d3406be74..bc8ee7fd3 100644 --- a/pd/src/m_pd.h +++ b/pd/src/m_pd.h @@ -713,7 +713,7 @@ EXTERN void sys_vguid(const char *file, int line, const char *fmt, ...); EXTERN void sys_vvguid(const char *file, int line, const char *fmt, va_list); #endif EXTERN void sys_gui(const char *s); -#define sys_vgui(args...) sys_vguid(__FILE__,__LINE__,args) +#define sys_vgui(...) sys_vguid(__FILE__,__LINE__,__VA_ARGS__) #define sys_gui(s) sys_vguid(__FILE__,__LINE__,"%s",s) EXTERN void gui_vmess(const char *sel, char *fmt, ...); /* some more gui interfaces for building incremental messages */ -- GitLab