Skip to content

Commit

Permalink
Patched to compile on MingW.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #1263.

Thanks to Mike Kasprzak for the patch!
  • Loading branch information
icculus committed Aug 25, 2011
1 parent 77980c9 commit 15f1003
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion music.c
Expand Up @@ -1596,7 +1596,9 @@ int Mix_EachSoundFont(int (*function)(const char*, void*), void *data)
return 0;
}

#ifdef _WIN32
#if defined(__MINGW32__) || defined(__MINGW64__)
for (path = strtok(paths, ";"); path; path = strtok(NULL, ";")) {
#elif defined(_WIN32)
for (path = strtok_s(paths, ";", &context); path; path = strtok_s(NULL, ";", &context)) {
#else
for (path = strtok_r(paths, ":;", &context); path; path = strtok_r(NULL, ":;", &context)) {
Expand Down

0 comments on commit 15f1003

Please sign in to comment.