From b84f150d0669592f4d4eedac2ea893c61194ba72 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 17 Dec 2024 11:11:56 +0300 Subject: [PATCH] fix macOS builds with hidapi disabled Fixes: https://github.com/libsdl-org/SDL/issues/11647 . --- src/hidapi/SDL_hidapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c index 81bebf0c3f..0c4f9c2e6f 100644 --- a/src/hidapi/SDL_hidapi.c +++ b/src/hidapi/SDL_hidapi.c @@ -1242,7 +1242,7 @@ int SDL_hid_init(void) return -1; } -#ifdef SDL_PLATFORM_MACOS +#if defined(HAVE_PLATFORM_BACKEND) && !defined(SDL_HIDAPI_DISABLED) hid_darwin_set_open_exclusive(0); #endif