Fix warnings when building with -DSDL_LIBC=OFF on Linux

This commit is contained in:
Anonymous Maarten
2024-03-18 20:39:47 +01:00
committed by Anonymous Maarten
parent f59dbf6a12
commit 009318c5a9
3 changed files with 10 additions and 6 deletions

View File

@@ -57,11 +57,11 @@ void *SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void
#ifndef HAVE_LIBC
/* NOLINTNEXTLINE(readability-redundant-declaration) */
extern void *memmove(void *dst, const void *src, size_t len);
#ifndef __INTEL_LLVM_COMPILER
#if defined(_MSC_VER) && !defined(__INTEL_LLVM_COMPILER)
#pragma intrinsic(memmove)
#endif
#ifndef __clang__
#if defined(_MSC_VER) && !defined(__clang__)
#pragma function(memmove)
#endif
/* NOLINTNEXTLINE(readability-inconsistent-declaration-parameter-name) */