Skip to content

Commit

Permalink
watcom does not provide strtok_r(), so simply use strtok() like the m…
Browse files Browse the repository at this point in the history
…ingw cases.

(from 2.0 branch commit 74a0ac03a448)
  • Loading branch information
sezero committed Oct 6, 2018
1 parent 5276c10 commit 53b3c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music.c
Expand Up @@ -1582,7 +1582,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 53b3c9f

Please sign in to comment.