From 1f51518734a909f368e46f8dfce35b76db5ca434 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Wed, 22 May 2024 03:27:47 +0300 Subject: [PATCH] use the macro extension ##__VA_ARGS on windows to allow gcc compilation via msys2 --- dll/dll/common_includes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/dll/common_includes.h b/dll/dll/common_includes.h index a6b0b0c5..177e259e 100644 --- a/dll/dll/common_includes.h +++ b/dll/dll/common_includes.h @@ -198,7 +198,7 @@ static inline void reset_LastError() auto __prnt_dbg_f = fopen(dbg_log_file.c_str(), "a"); \ if (!__prnt_dbg_f) break; \ fprintf(__prnt_dbg_f, "[%llu ms, %llu us] [tid %lu] %s() " a "\n", \ - __prnt_dbg_ms.count(), __prnt_dbg_micro.count(), GetCurrentThreadId(), __FUNCTION__, __VA_ARGS__); \ + __prnt_dbg_ms.count(), __prnt_dbg_micro.count(), GetCurrentThreadId(), __FUNCTION__, ##__VA_ARGS__); \ fclose(__prnt_dbg_f); \ WSASetLastError(0); \ } while (0)