Mercurial > SDL_sound_CoreAudio
diff decoders/shn.c @ 126:8a5a1c61d3c6
Fix for MS Visual C.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 09 Oct 2001 16:44:05 +0000 |
parents | dd95a12539fd |
children | 1df5c106504e |
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);