SDL: Don't try to call hid_ble_scan() if HIDAPI is disabled

From 22d6e09a8ded9a0a6880ed02ed069d637f987540 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 25 May 2022 11:04:58 -0700
Subject: [PATCH] Don't try to call hid_ble_scan() if HIDAPI is disabled

Fixes https://github.com/libsdl-org/SDL/issues/5699
---
 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 369b616f507..9b25742f84e 100644
--- a/src/hidapi/SDL_hidapi.c
+++ b/src/hidapi/SDL_hidapi.c
@@ -1524,7 +1524,7 @@ int SDL_hid_get_indexed_string(SDL_hid_device *device, int string_index, wchar_t
 
 void SDL_hid_ble_scan(SDL_bool active)
 {
-#if __IPHONEOS__ || __TVOS__
+#if !SDL_HIDAPI_DISABLED && (__IPHONEOS__ || __TVOS__)
     hid_ble_scan(active);
 #endif
 }