Skip to content

Commit

Permalink
Compile fix for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Lantinga committed Mar 4, 2000
1 parent 730851f commit df8e6cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions music.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit df8e6cf

Please sign in to comment.