aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-18 23:55:48 +0200
committerMax Kellermann <max@duempel.org>2010-05-18 23:56:53 +0200
commitbedc172eab6c859093d096546b6836f79c90e974 (patch)
tree93f3c4b074de6883d31b038457ccfe0b037ab904
parent0a9b0dd07049b644a10ee920497a163ce6e23967 (diff)
downloadmpd-bedc172eab6c859093d096546b6836f79c90e974.tar.gz
mpd-bedc172eab6c859093d096546b6836f79c90e974.tar.xz
mpd-bedc172eab6c859093d096546b6836f79c90e974.zip
crossfade: emulate strtok_r() on WIN32 with a function
Not a CPP macro. This adds the "unused" attribute to "saveptr", which eliminates one gcc warning.
Diffstat (limited to '')
-rw-r--r--src/crossfade.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crossfade.c b/src/crossfade.c
index fff179386..cdfd82879 100644
--- a/src/crossfade.c
+++ b/src/crossfade.c
@@ -33,7 +33,11 @@
#define G_LOG_DOMAIN "crossfade"
#ifdef G_OS_WIN32
- #define strtok_r(s,d,p) strtok(s,d)
+static char *
+strtok_r(char *str, const char *delim, G_GNUC_UNUSED char **saveptr)
+{
+ return strtok(str, delim);
+}
#endif
static float mixramp_interpolate(char *ramp_list, float required_db)