music.c
changeset 513 48731fa9ca41
parent 510 3a4c352a9a00
child 518 8bc9b5fd2aae
     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)) {