From 614521b238cc24c8954bd3ec5b914f0fefdd8c5c Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 16 Mar 2018 21:03:43 +0000 Subject: [PATCH] fix building on windows without dinput --- gfx/drivers_context/wgl_ctx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c index 2eb2e25c76..1545862bd3 100644 --- a/gfx/drivers_context/wgl_ctx.c +++ b/gfx/drivers_context/wgl_ctx.c @@ -628,9 +628,11 @@ static void gfx_ctx_wgl_input_driver(void *data, } #endif +#ifdef HAVE_DINPUT dinput_wgl = input_dinput.init(joypad_name); *input = dinput_wgl ? &input_dinput : NULL; *input_data = dinput_wgl; +#endif } static bool gfx_ctx_wgl_has_focus(void *data)