瀏覽代碼

Fixed build

Sam Lantinga 6 年之前
父節點
當前提交
c302c1abb8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/joystick/windows/SDL_rawinputjoystick.c

+ 1 - 0
src/joystick/windows/SDL_rawinputjoystick.c

@@ -95,6 +95,7 @@ static void RAWINPUT_JoystickClose(SDL_Joystick * joystick);
 
 typedef struct _SDL_RAWINPUT_Device
 {
+    SDL_atomic_t refcount;
     char *name;
     Uint16 vendor_id;
     Uint16 product_id;