Patched to compile on MingW.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 25 Aug 2011 02:49:31 -0400
changeset 51348731fa9ca41
parent 512 563dbb082a17
child 514 247556e7809d
Patched to compile on MingW.

Fixes Bugzilla #1263.

Thanks to Mike Kasprzak for the patch!
music.c
     1.1 --- a/music.c	Thu Aug 25 02:21:31 2011 -0400
     1.2 +++ b/music.c	Thu Aug 25 02:49:31 2011 -0400
     1.3 @@ -1596,7 +1596,9 @@
     1.4  		return 0;
     1.5  	}
     1.6  
     1.7 -#ifdef _WIN32
     1.8 +#if defined(__MINGW32__) || defined(__MINGW64__)
     1.9 +	for (path = strtok(paths, ";"); path; path = strtok(NULL, ";")) {
    1.10 +#elif defined(_WIN32)
    1.11  	for (path = strtok_s(paths, ";", &context); path; path = strtok_s(NULL, ";", &context)) {
    1.12  #else
    1.13  	for (path = strtok_r(paths, ":;", &context); path; path = strtok_r(NULL, ":;", &context)) {