aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2010-03-21 18:24:24 -0700
committerAvuton Olrich <avuton@gmail.com>2010-03-21 18:24:24 -0700
commit4953ea90c2d631b8d6ebd449e819cece62134fa7 (patch)
tree1f52cbd13dc27dc1d127298a64517b1e4ea9b9b4 /src
parente7a515c8b11c643332406d60a13ab1fe06d2b226 (diff)
downloadmpd-4953ea90c2d631b8d6ebd449e819cece62134fa7.tar.gz
mpd-4953ea90c2d631b8d6ebd449e819cece62134fa7.tar.xz
mpd-4953ea90c2d631b8d6ebd449e819cece62134fa7.zip
strtok() is recursive by default on win32.
Diffstat (limited to 'src')
-rw-r--r--src/crossfade.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crossfade.c b/src/crossfade.c
index 50a35f690..7989b1dc9 100644
--- a/src/crossfade.c
+++ b/src/crossfade.c
@@ -32,6 +32,10 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "crossfade"
+#ifdef G_OS_WIN32
+ #define strtok_r(s,d,p) strtok(s,d)
+#endif
+
static float mixramp_interpolate(char *ramp_list, float required_db)
{
float db, secs, last_db = nan(""), last_secs = 0;