changeset 126:8a5a1c61d3c6

Fix for MS Visual C.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 09 Oct 2001 16:44:05 +0000
parents 7d033b28b5d2
children 21c73fafde50
files decoders/shn.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/decoders/shn.c	Mon Oct 08 19:14:26 2001 +0000
+++ b/decoders/shn.c	Tue Oct 09 16:44:05 2001 +0000
@@ -57,6 +57,9 @@
 #define __SDL_SOUND_INTERNAL__
 #include "SDL_sound_internal.h"
 
+#ifdef _MSC_VER
+#	define inline __inline
+#endif
 
 static int SHN_init(void);
 static void SHN_quit(void);
@@ -1045,7 +1048,7 @@
     } /* switch */
 
     i = MIN_MACRO(internal->buffer_size - bw, bsiz);
-    memcpy(internal->buffer + bw, shn->backBuffer, i);
+    memcpy((char *)internal->buffer + bw, shn->backBuffer, i);
     shn->backBufLeft = bsiz - i;
     memcpy(shn->backBuffer, shn->backBuffer + i, shn->backBufLeft);
     return(i);