Ver código fonte

SDL: Fix link error when vs2019+x64 is used.

Alex Szpakowski 6 anos atrás
pai
commit
7ed6273a1a
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      libs/SDL2/src/stdlib/SDL_string.c

+ 3 - 0
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)
 {