瀏覽代碼

Fixed conflict when linking both SDL and hidapi statically

Fixes https://github.com/libsdl-org/SDL/issues/12790
Sam Lantinga 1 周之前
父節點
當前提交
98e76d283f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/hidapi/SDL_hidapi_windows.h

+ 4 - 0
src/hidapi/SDL_hidapi_windows.h

@@ -62,6 +62,10 @@
 #define wcsstr      SDL_wcsstr
 #define wcstol      SDL_wcstol
 
+// These functions conflict when linking both SDL and hidapi statically
+#define hid_winapi_descriptor_reconstruct_pp_data SDL_hid_winapi_descriptor_reconstruct_pp_data
+#define hid_winapi_get_container_id SDL_hid_winapi_get_container_id
+
 #undef HIDAPI_H__
 #include "windows/hid.c"
 #define HAVE_PLATFORM_BACKEND 1