From 63b52e8e675c559aeadae531f8fab813af73d816 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 21 Nov 2020 18:34:32 -0800 Subject: [PATCH] Remove SDL dependency in Windows code --- src/hidapi/windows/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidapi/windows/hid.c b/src/hidapi/windows/hid.c index 1d1771429..d60cb6f4d 100644 --- a/src/hidapi/windows/hid.c +++ b/src/hidapi/windows/hid.c @@ -326,7 +326,7 @@ int hid_blacklist(unsigned short vendor_id, unsigned short product_id) { 0x0738, 0x2217 } /* SPEEDLINK COMPETITION PRO */ }; - for (i = 0; i < SDL_arraysize(known_bad); i++) { + for (i = 0; i < (sizeof(known_bad)/sizeof(known_bad[0])); i++) { if ((vendor_id == known_bad[i].vid) && (product_id == known_bad[i].pid)) { return 1; }