[Commits] SDL_image: Fixed building with Visual Studio

libsdl.org revision control commits-owner at libsdl.org
Fri Sep 28 02:21:12 PDT 2018


details:   https://hg.libsdl.org/SDL_image/rev/de1b4449f8a6
changeset: 589:de1b4449f8a6
user:      Sam Lantinga <slouken at libsdl.org>
date:      Fri Sep 28 02:21:04 2018 -0700
description:
Fixed building with Visual Studio

diffstat:

 IMG_png.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 960662a9dbdc -r de1b4449f8a6 IMG_png.c
--- a/IMG_png.c	Thu Sep 27 00:36:36 2018 -0700
+++ b/IMG_png.c	Fri Sep 28 02:21:04 2018 -0700
@@ -611,6 +611,8 @@
 #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


More information about the commits mailing list