From df8e6cffac5668fbc7b3c847b36776955f617405 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 4 Mar 2000 04:39:12 +0000 Subject: [PATCH] Compile fix for MacOS --- music.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/music.c b/music.c index 31fea94b..65eed944 100644 --- a/music.c +++ b/music.c @@ -364,9 +364,10 @@ Mix_Music *Mix_LoadMUS(const char *file) /* WAVE files have the magic four bytes "RIFF" AIFF files have the magic 12 bytes "FORM" XXXX "AIFF" */ - if ( (strcmp(magic, "RIFF") == 0) || (strcmp(magic, "FORM") == 0) ) { + if ( (strcmp((char *)magic, "RIFF") == 0) || + (strcmp((char *)magic, "FORM") == 0) ) { music->type = MUS_WAV; - music->data.wave = WAVStream_LoadSong(file, magic); + music->data.wave = WAVStream_LoadSong(file, (char *)magic); if ( music->data.wave == NULL ) { music->error = 1; }