[PATCH 12/12] xinput: Global variable compatibility update for gcc 10

Michael Cronenworth mike at cchtml.com
Thu Jan 23 17:05:30 CST 2020


https://gcc.gnu.org/gcc-10/porting_to.html#common
---
 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;
-- 
2.24.1




More information about the wine-devel mailing list