mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 11:26:29 +00:00
Fixed building without HAVE_LIBC on Windows
Fixes https://github.com/libsdl-org/SDL/issues/9064
This commit is contained in:
@@ -53,3 +53,21 @@ void *SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void
|
||||
#endif /* HAVE_MEMMOVE */
|
||||
}
|
||||
|
||||
|
||||
#ifndef HAVE_LIBC
|
||||
/* NOLINTNEXTLINE(readability-redundant-declaration) */
|
||||
extern void *memmove(void *dst, const void *src, size_t len);
|
||||
#ifndef __INTEL_LLVM_COMPILER
|
||||
#pragma intrinsic(memmove)
|
||||
#endif
|
||||
|
||||
#ifndef __clang__
|
||||
#pragma function(memmove)
|
||||
#endif
|
||||
/* NOLINTNEXTLINE(readability-inconsistent-declaration-parameter-name) */
|
||||
void *memmove(void *dst, const void *src, size_t len)
|
||||
{
|
||||
return SDL_memmove(dst, src, len);
|
||||
}
|
||||
#endif /* !HAVE_LIBC */
|
||||
|
||||
|
Reference in New Issue
Block a user