From 00c0ab7430d53e0233a9e55081115a940a66ed4d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 28 Sep 2018 02:21:04 -0700 Subject: [PATCH] Fixed building with Visual Studio --- IMG_png.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IMG_png.c b/IMG_png.c index bdd0eda4..2a8eafba 100644 --- a/IMG_png.c +++ b/IMG_png.c @@ -611,6 +611,8 @@ static int IMG_SavePNG_RW_libpng(SDL_Surface *surface, SDL_RWops *dst, int freed #define MINIZ_NO_TIME #define MINIZ_SDL_MALLOC #define MZ_ASSERT(x) SDL_assert(x) +#undef memcpy +#define memcpy SDL_memcpy #undef memset #define memset SDL_memset #define strlen SDL_strlen