fix macOS builds with hidapi disabled

Fixes: https://github.com/libsdl-org/SDL/issues/11647 .
This commit is contained in:
Ozkan Sezer 2024-12-17 11:11:56 +03:00
parent c52a96ca8e
commit b84f150d06

View file

@ -1242,7 +1242,7 @@ int SDL_hid_init(void)
return -1; return -1;
} }
#ifdef SDL_PLATFORM_MACOS #if defined(HAVE_PLATFORM_BACKEND) && !defined(SDL_HIDAPI_DISABLED)
hid_darwin_set_open_exclusive(0); hid_darwin_set_open_exclusive(0);
#endif #endif