Skip to content

Commit

Permalink
music.c: watcom does not provide strtok_r(), so simply use strtok() l…
Browse files Browse the repository at this point in the history
…ike the mingw cases.
  • Loading branch information
slouken committed Oct 16, 2017
1 parent 038ffa5 commit 2c527c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music.c
Expand Up @@ -1640,7 +1640,7 @@ int Mix_EachSoundFont(int (*function)(const char*, void*), void *data)
return 0;
}

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

0 comments on commit 2c527c9

Please sign in to comment.