mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-08 10:56:27 +00:00
SDL_memcpy.c, SDL_memmove.c, SDL_memset.c: don't use gcc builtins if !HAVE_LIBC
__builtin_memcpy, as well as __builtin_memset and __builtin_memmove, needn't be inlined but emitted as a libc call, leading to infinitely recursive calls. Fixes https://github.com/libsdl-org/SDL/issues/9090
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#endif
|
||||
void *SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
|
||||
{
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && (defined(HAVE_LIBC) && HAVE_LIBC)
|
||||
/* Presumably this is well tuned for speed. */
|
||||
return __builtin_memmove(dst, src, len);
|
||||
#elif defined(HAVE_MEMMOVE)
|
||||
|
Reference in New Issue
Block a user