From 65a38a4015e54add093bdb3fbd2ad1cdc1770c72 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 22 Oct 2022 14:28:10 +0300 Subject: [PATCH] hidapi, libusb: remove os/2 symbol load hack after os/2 loadso updates --- src/hidapi/SDL_hidapi.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c index d62acb03f..07f8c1ea8 100644 --- a/src/hidapi/SDL_hidapi.c +++ b/src/hidapi/SDL_hidapi.c @@ -1075,13 +1075,8 @@ int SDL_hid_init(void) if (libusb_ctx.libhandle != NULL) { SDL_bool loaded = SDL_TRUE; #ifdef SDL_LIBUSB_DYNAMIC - #ifdef __OS2__ - #define LOAD_LIBUSB_SYMBOL(func) \ - if (!(libusb_ctx.func = SDL_LoadFunction(libusb_ctx.libhandle,"_libusb_" #func))) {loaded = SDL_FALSE;} - #else #define LOAD_LIBUSB_SYMBOL(func) \ if (!(libusb_ctx.func = SDL_LoadFunction(libusb_ctx.libhandle, "libusb_" #func))) {loaded = SDL_FALSE;} - #endif #else #define LOAD_LIBUSB_SYMBOL(func) \ libusb_ctx.func = libusb_##func;