From 085d631309870cc85ccc6002cd9d036bc7021faf Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 20 May 2021 03:56:20 -0700 Subject: [PATCH] hid: Rename hid_init to work around static linking issues for now --- include/hw/input/hid.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/hw/input/hid.h b/include/hw/input/hid.h index 6a9d7bf466..95f3713727 100644 --- a/include/hw/input/hid.h +++ b/include/hw/input/hid.h @@ -48,6 +48,11 @@ struct HIDState { QemuInputHandlerState *s; }; +#ifdef XBOX +/* XXX: `hid_init` conflicts with SDL2 package. Redefine it here for now. */ +#define hid_init qemu_hid_init +#endif + void hid_init(HIDState *hs, int kind, HIDEventFunc event); void hid_reset(HIDState *hs); void hid_free(HIDState *hs);