mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 06:44:27 +08:00
Added a note that we dynamically load libusb
This commit is contained in:
@@ -24,6 +24,15 @@
|
|||||||
|
|
||||||
#ifdef HAVE_LIBUSB
|
#ifdef HAVE_LIBUSB
|
||||||
|
|
||||||
|
#ifdef SDL_LIBUSB_DYNAMIC
|
||||||
|
SDL_ELF_NOTE_DLOPEN(
|
||||||
|
"libusb",
|
||||||
|
"Support for joysticks through libusb",
|
||||||
|
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
|
||||||
|
SDL_LIBUSB_DYNAMIC
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
static SDL_AtomicInt SDL_libusb_refcount;
|
static SDL_AtomicInt SDL_libusb_refcount;
|
||||||
static bool SDL_libusb_loaded;
|
static bool SDL_libusb_loaded;
|
||||||
static SDL_SharedObject *SDL_libusb_handle;
|
static SDL_SharedObject *SDL_libusb_handle;
|
||||||
|
|||||||
Reference in New Issue
Block a user