Module: wine Branch: stable Commit: d42cb277d0ba8918598c2d1af62e9c0d883e20c7 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d42cb277d0ba8918598c2d1af...
Author: Michael Cronenworth mike@cchtml.com Date: Thu Jan 23 17:05:30 2020 -0600
xinput: Global variable compatibility update for gcc 10.
Signed-off-by: Andrew Eikum aeikum@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 44e69405adcdc98d6b0777e6c0acb2697d776ef8) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/xinput1_3/xinput_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/xinput1_3/xinput_private.h b/dlls/xinput1_3/xinput_private.h index f3456cd8e7..9a0e03c1de 100644 --- a/dlls/xinput1_3/xinput_private.h +++ b/dlls/xinput1_3/xinput_private.h @@ -26,8 +26,8 @@ typedef struct _xinput_controller XINPUT_VIBRATION vibration; } xinput_controller;
-CRITICAL_SECTION xinput_crit; -xinput_controller controllers[XUSER_MAX_COUNT]; +extern CRITICAL_SECTION xinput_crit; +extern xinput_controller controllers[XUSER_MAX_COUNT];
void HID_find_gamepads(xinput_controller *devices) DECLSPEC_HIDDEN; void HID_destroy_gamepads(xinput_controller *devices) DECLSPEC_HIDDEN;