From e976c5d081b35b5ee60ed755ec5ddca7c326d9c1 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 18 Apr 2012 12:53:17 +0100 Subject: strsep is in upstream BusyBox: no need for MINGW32 version --- include/mingw.h | 4 ---- include/platform.h | 1 + win32/mingw.c | 18 ------------------ 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/include/mingw.h b/include/mingw.h index 9c9767b3e..910eff412 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -171,10 +171,6 @@ int setenv(const char *name, const char *value, int replace); void unsetenv(const char *env); #define getenv mingw_getenv -/* - * string.h - */ -char *strsep(char **stringp, const char *delim); /* * sys/ioctl.h diff --git a/include/platform.h b/include/platform.h index 96c603c1f..b3c4eaf5d 100644 --- a/include/platform.h +++ b/include/platform.h @@ -401,6 +401,7 @@ typedef unsigned smalluint; # undef HAVE_STPCPY # undef HAVE_STRCASESTR # undef HAVE_STRCHRNUL +# undef HAVE_STRSEP # undef HAVE_STRSIGNAL # undef HAVE_STRVERSCMP # undef HAVE_VASPRINTF diff --git a/win32/mingw.c b/win32/mingw.c index c9b00bbcd..b99c88444 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -654,24 +654,6 @@ int link(const char *oldpath, const char *newpath) return 0; } -char *strsep(char **stringp, const char *delim) -{ - char *s, *old_stringp; - if (!*stringp) - return NULL; - old_stringp = s = *stringp; - while (*s) { - if (strchr(delim, *s)) { - *s = '\0'; - *stringp = s+1; - return old_stringp; - } - s++; - } - *stringp = NULL; - return old_stringp; -} - char *realpath(const char *path, char *resolved_path) { /* FIXME: need normalization */ -- cgit v1.2.3-55-g6feb