summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2015-04-10 14:56:27 +0000
committerRodeo <[email protected]>2015-04-10 14:56:27 +0000
commit864ce5a4227d81f688f32e808245b2600f431ac3 (patch)
tree80fe0b03201bac220a3d2c291129381752b888db /libhb/ports.c
parentf360714523e5f1f78ced2ae8691f3087b80eef65 (diff)
Move strtok_r fallback to dedicated "compat" files.
Also, check whether the toolchain already provides strtok_r instead of building it unconditionally. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7076 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 4e542b202..048f478cf 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -1147,33 +1147,6 @@ void hb_net_close( hb_net_t ** _n )
*_n = NULL;
}
-#ifdef SYS_MINGW
-char *strtok_r(char *s, const char *delim, char **save_ptr)
-{
- char *token;
-
- if (s == NULL) s = *save_ptr;
-
- /* Scan leading delimiters. */
- s += strspn(s, delim);
- if (*s == '\0') return NULL;
-
- /* Find the end of the token. */
- token = s;
- s = strpbrk(token, delim);
- if (s == NULL)
- /* This token finishes the string. */
- *save_ptr = strchr(token, '\0');
- else {
- /* Terminate the token and make *SAVE_PTR point past it. */
- *s = '\0';
- *save_ptr = s + 1;
- }
-
- return token;
-}
-#endif
-
/************************************************************************
* OS Sleep Allow / Prevent
***********************************************************************/