浏览代码

Fixed build

Sam Lantinga 3 年之前
父节点
当前提交
c28da4892a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/joystick/hidapi/SDL_hidapi_wii.c

+ 3 - 1
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;