Skip to content

Commit dcefe95

Browse files
committed
Configure SDL assuming we, in fact, have a libc.
Without this, on Linux and Linux alone, and only if SDL is builtin, the definitions for some functions - notably, memset/memcpy - are taken from SDL source. This leaves them at the mercy of the compiler and may lead to the optimal implementations of these functions not being selected. But the main motivation for this is that it's action at a distance that is incredibly surprising - linking in a gamepad support library should not change the implementation of memset/memcpy!
1 parent 6339f31 commit dcefe95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/sdl/SDL_build_config_private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
#define SDL_PLATFORM_UNIX 1
8282

8383
#define HAVE_STDIO_H 1
84+
#define HAVE_LIBC 1
8485
#define HAVE_LINUX_INPUT_H 1
8586
#define HAVE_POLL 1
8687

0 commit comments

Comments
 (0)