# HG changeset patch # User Matias N. Goldberg # Date 1587956335 10800 # Sun Apr 26 23:58:55 2020 -0300 # Node ID ca5eee23866b719b564989ddd6117ad53b5abdd6 # Parent a564e72e3b2d0e422c8d8a80a7a5ad46487fb5d2 Fix linking errors with VS2019 diff -r a564e72e3b2d -r ca5eee23866b src/stdlib/SDL_stdlib.c --- a/src/stdlib/SDL_stdlib.c Fri Apr 24 02:06:53 2020 -0400 +++ b/src/stdlib/SDL_stdlib.c Sun Apr 26 23:58:55 2020 -0300 @@ -523,6 +523,14 @@ } #endif /* _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG) */ +#if _MSC_VER >= 1900 +#pragma function(memset) +void* __cdecl memset( void* dest, int c, size_t count ) +{ + return SDL_memset( dest, c, count ); +} +#endif + #ifdef _M_IX86 /* Float to long */