From 7ed6273a1a8e913157236cd18a0de46fd029a447 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 4 Jan 2020 20:30:55 -0400 Subject: [PATCH] SDL: Fix link error when vs2019+x64 is used. --- libs/SDL2/src/stdlib/SDL_string.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/SDL2/src/stdlib/SDL_string.c b/libs/SDL2/src/stdlib/SDL_string.c index c1a4981b..b9a6274c 100644 --- a/libs/SDL2/src/stdlib/SDL_string.c +++ b/libs/SDL2/src/stdlib/SDL_string.c @@ -262,6 +262,9 @@ SDL_ScanFloat(const char *text, double *valuep) } #endif +#if defined(_MSC_VER) && !defined(HAVE_MEMSET) +__declspec(noinline) +#endif void * SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len) {