From 108dc26c86e0de2ba0e7c0787e1c9ccdaad80428 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 3 Jul 2020 08:04:15 +0200 Subject: [PATCH] (MSVC 2010) Buildfix --- gfx/common/d3d_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/common/d3d_common.c b/gfx/common/d3d_common.c index 1522fe8853..8b0b292852 100644 --- a/gfx/common/d3d_common.c +++ b/gfx/common/d3d_common.c @@ -156,6 +156,7 @@ void d3d_input_driver(const char* input_name, const char* joypad_name, *input_data = xinput; #else #if _WIN32_WINNT >= 0x0501 +#ifdef HAVE_WINRAWINPUT /* winraw only available since XP */ if (string_is_equal(input_name, "raw")) { @@ -167,6 +168,7 @@ void d3d_input_driver(const char* input_name, const char* joypad_name, } } #endif +#endif #ifdef HAVE_DINPUT *input_data = input_dinput.init(joypad_name);