From 53b3c9f01d4ff78878b0c30421f2bcb2aa498632 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 7 Oct 2018 02:26:55 +0300 Subject: [PATCH] watcom does not provide strtok_r(), so simply use strtok() like the mingw cases. (from 2.0 branch commit 74a0ac03a448) --- music.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music.c b/music.c index abefbc16..541769ef 100644 --- a/music.c +++ b/music.c @@ -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)) {