Compile fix for MacOS
authorSam Lantinga <slouken@lokigames.com>
Sat, 04 Mar 2000 04:39:12 +0000
changeset 5768b1508afa73
parent 56 62ed6b0665a3
child 58 7b2c2ed3399e
Compile fix for MacOS
music.c
     1.1 --- a/music.c	Sat Mar 04 03:38:30 2000 +0000
     1.2 +++ b/music.c	Sat Mar 04 04:39:12 2000 +0000
     1.3 @@ -364,9 +364,10 @@
     1.4  	/* WAVE files have the magic four bytes "RIFF"
     1.5  	   AIFF files have the magic 12 bytes "FORM" XXXX "AIFF"
     1.6  	 */
     1.7 -	if ( (strcmp(magic, "RIFF") == 0) || (strcmp(magic, "FORM") == 0) ) {
     1.8 +	if ( (strcmp((char *)magic, "RIFF") == 0) ||
     1.9 +	     (strcmp((char *)magic, "FORM") == 0) ) {
    1.10  		music->type = MUS_WAV;
    1.11 -		music->data.wave = WAVStream_LoadSong(file, magic);
    1.12 +		music->data.wave = WAVStream_LoadSong(file, (char *)magic);
    1.13  		if ( music->data.wave == NULL ) {
    1.14  			music->error = 1;
    1.15  		}