From 2b6012df7d240e49bc48842ef7f12b71b60b40ed Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 18 Apr 2024 20:05:16 +0200 Subject: [PATCH] tests/shader_runner: Use WIDL_C_INLINE_WRAPPERS. --- tests/shader_runner.c | 2 ++ tests/shader_runner_d3d12.c | 3 +++ tests/shader_runner_gl.c | 3 +++ 3 files changed, 8 insertions(+) diff --git a/tests/shader_runner.c b/tests/shader_runner.c index 29ac8749..8e6fdf9b 100644 --- a/tests/shader_runner.c +++ b/tests/shader_runner.c @@ -45,6 +45,8 @@ #ifdef __MINGW32__ # define _HRESULT_DEFINED typedef int HRESULT; +#else +# define WIDL_C_INLINE_WRAPPERS #endif #define COBJMACROS diff --git a/tests/shader_runner_d3d12.c b/tests/shader_runner_d3d12.c index 7729de7c..8119a66e 100644 --- a/tests/shader_runner_d3d12.c +++ b/tests/shader_runner_d3d12.c @@ -18,6 +18,9 @@ #include "config.h" #include +#ifndef __MINGW32__ +#define WIDL_C_INLINE_WRAPPERS +#endif #define COBJMACROS #define CONST_VTABLE #define VKD3D_TEST_NO_DEFS diff --git a/tests/shader_runner_gl.c b/tests/shader_runner_gl.c index fdc418ba..632ba5cc 100644 --- a/tests/shader_runner_gl.c +++ b/tests/shader_runner_gl.c @@ -20,6 +20,9 @@ #ifdef HAVE_OPENGL +#ifndef __MINGW32__ +#define WIDL_C_INLINE_WRAPPERS +#endif #define COBJMACROS #define VKD3D_TEST_NO_DEFS #define GL_GLEXT_PROTOTYPES