From c28da4892af928ab0196274115204741a2991c9b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 7 Sep 2022 00:52:40 -0700 Subject: [PATCH] Fixed build --- src/joystick/hidapi/SDL_hidapi_wii.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_wii.c b/src/joystick/hidapi/SDL_hidapi_wii.c index 2f4868911..7fd3d0123 100644 --- a/src/joystick/hidapi/SDL_hidapi_wii.c +++ b/src/joystick/hidapi/SDL_hidapi_wii.c @@ -1525,7 +1525,9 @@ HIDAPI_DriverWii_UpdateDevice(SDL_HIDAPI_Device *device) /* Check to see if we've lost connection to the controller. * We have continuous reporting enabled, so this should be reliable now. */ - SDL_COMPILE_TIME_ASSERT(ENABLE_CONTINUOUS_REPORTING, ENABLE_CONTINUOUS_REPORTING); + { + SDL_COMPILE_TIME_ASSERT(ENABLE_CONTINUOUS_REPORTING, ENABLE_CONTINUOUS_REPORTING); + } if (SDL_TICKS_PASSED(now, ctx->m_unLastInput + INPUT_WAIT_TIMEOUT_MS)) { /* Bluetooth may have disconnected, try reopening the controller */ size = -1;