Fixed building with Visual Studio
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Sep 2018 02:21:04 -0700
changeset 589de1b4449f8a6
parent 588 960662a9dbdc
child 590 8b4ee1d72a2a
Fixed building with Visual Studio
IMG_png.c
     1.1 --- a/IMG_png.c	Thu Sep 27 00:36:36 2018 -0700
     1.2 +++ b/IMG_png.c	Fri Sep 28 02:21:04 2018 -0700
     1.3 @@ -611,6 +611,8 @@
     1.4  #define MINIZ_NO_TIME
     1.5  #define MINIZ_SDL_MALLOC
     1.6  #define MZ_ASSERT(x) SDL_assert(x)
     1.7 +#undef memcpy
     1.8 +#define memcpy  SDL_memcpy
     1.9  #undef memset
    1.10  #define memset  SDL_memset
    1.11  #define strlen  SDL_strlen