From bedc172eab6c859093d096546b6836f79c90e974 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 18 May 2010 23:55:48 +0200 Subject: 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. --- src/crossfade.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3