Commit bedc172e authored by Max Kellermann's avatar Max Kellermann

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.
parent 0a9b0dd0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment