From eb70b1756b86be044f3fccb28a792b204deaafd4 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 11 Sep 2024 20:19:13 +0200 Subject: [PATCH] [winpr,wlog] fix GNU variadic macro --- winpr/include/winpr/wlog.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/winpr/include/winpr/wlog.h b/winpr/include/winpr/wlog.h index c3918f5b4..5a12bf37b 100644 --- a/winpr/include/winpr/wlog.h +++ b/winpr/include/winpr/wlog.h @@ -134,13 +134,13 @@ extern "C" __VA_ARGS__); \ } while (0) -#define WLog_Print(_log, _log_level, ...) \ - do \ - { \ - if (WLog_IsLevelActive(_log, _log_level)) \ - { \ - WLog_Print_unchecked(_log, _log_level, ##__VA_ARGS__); \ - } \ +#define WLog_Print(_log, _log_level, ...) \ + do \ + { \ + if (WLog_IsLevelActive(_log, _log_level)) \ + { \ + WLog_Print_unchecked(_log, _log_level, __VA_ARGS__); \ + } \ } while (0) #define WLog_Print_tag(_tag, _log_level, ...) \