Commit e6a4230de9ae54a5ef74ca0406d2ea8fa44cf21e

Sam Lantinga 2021-11-23T03:51:32

Revert testevdev libc changes This file uses internal SDL headers as a hack, without actually being built as part of SDL, so we should use normal C functions here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/testevdev.c b/test/testevdev.c
index 5ce9537..9710972 100644
--- a/test/testevdev.c
+++ b/test/testevdev.c
@@ -961,11 +961,11 @@ run_test(void)
 
         printf("%s...\n", t->name);
 
-        SDL_memset(&caps, '\0', sizeof(caps));
-        SDL_memcpy(caps.ev, t->ev, sizeof(t->ev));
-        SDL_memcpy(caps.keys, t->keys, sizeof(t->keys));
-        SDL_memcpy(caps.abs, t->abs, sizeof(t->abs));
-        SDL_memcpy(caps.rel, t->rel, sizeof(t->rel));
+        memset(&caps, '\0', sizeof(caps));
+        memcpy(caps.ev, t->ev, sizeof(t->ev));
+        memcpy(caps.keys, t->keys, sizeof(t->keys));
+        memcpy(caps.abs, t->abs, sizeof(t->abs));
+        memcpy(caps.rel, t->rel, sizeof(t->rel));
 
         for (j = 0; j < SDL_arraysize(caps.ev); j++) {
             caps.ev[j] = SwapLongLE(caps.ev[j]);