From 15f100319dfe0d1b9cee180cf8b7f2ed2c266bf2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 25 Aug 2011 02:49:31 -0400 Subject: [PATCH] Patched to compile on MingW. Fixes Bugzilla #1263. Thanks to Mike Kasprzak for the patch! --- music.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/music.c b/music.c index 4416ef41..a8c15903 100644 --- a/music.c +++ b/music.c @@ -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)) {