diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c index 0c4f9c2e6f..6c027f917d 100644 --- a/src/hidapi/SDL_hidapi.c +++ b/src/hidapi/SDL_hidapi.c @@ -1242,7 +1242,7 @@ int SDL_hid_init(void) return -1; } -#if defined(HAVE_PLATFORM_BACKEND) && !defined(SDL_HIDAPI_DISABLED) +#if defined(SDL_PLATFORM_MACOS) && !defined(SDL_HIDAPI_DISABLED) hid_darwin_set_open_exclusive(0); #endif