From ebe4f47f2b2e97deed78faa6c3e90ff51cd499a4 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 26 Jun 2022 19:04:25 +0000 Subject: [PATCH] Fixed __VA_ARGS__ in gcc when no args --- src/render/direct3d12/SDL_render_d3d12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/direct3d12/SDL_render_d3d12.c b/src/render/direct3d12/SDL_render_d3d12.c index 47870e664..5fbe42b73 100644 --- a/src/render/direct3d12/SDL_render_d3d12.c +++ b/src/render/direct3d12/SDL_render_d3d12.c @@ -59,8 +59,8 @@ #define D3D_GUID(X) (X) #else #define SAFE_RELEASE(X) if (X) { (X)->lpVtbl->Release(X); X = NULL; } -#define D3D_CALL(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), __VA_ARGS__) -#define D3D_CALL_RET(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), __VA_ARGS__) +#define D3D_CALL(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), ##__VA_ARGS__) +#define D3D_CALL_RET(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), ##__VA_ARGS__) #define D3D_GUID(X) &(X) #endif