diff options
author | Avuton Olrich <avuton@gmail.com> | 2010-03-21 18:24:24 -0700 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2010-03-21 18:24:24 -0700 |
commit | 4953ea90c2d631b8d6ebd449e819cece62134fa7 (patch) | |
tree | 1f52cbd13dc27dc1d127298a64517b1e4ea9b9b4 | |
parent | e7a515c8b11c643332406d60a13ab1fe06d2b226 (diff) | |
download | mpd-4953ea90c2d631b8d6ebd449e819cece62134fa7.tar.gz mpd-4953ea90c2d631b8d6ebd449e819cece62134fa7.tar.xz mpd-4953ea90c2d631b8d6ebd449e819cece62134fa7.zip |
strtok() is recursive by default on win32.
-rw-r--r-- | src/crossfade.c | 4 |
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; |