mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-15 02:37:52 +00:00
removed MSVC strtok_s use from SDL_strtokr().
no other ??_s are used elsewhere in SDL_stdinc. besides, C11 has a strtok_s with a different signature.
This commit is contained in:
parent
0684572ccc
commit
8a32ee24db
6 changed files with 10 additions and 17 deletions
|
|
@ -28,12 +28,9 @@
|
|||
|
||||
char *SDL_strtokr(char *s1, const char *s2, char **ptr)
|
||||
{
|
||||
#if defined(HAVE_STRTOK_R)
|
||||
#ifdef HAVE_STRTOK_R
|
||||
return strtok_r(s1, s2, ptr);
|
||||
|
||||
#elif defined(_MSC_VER) && defined(HAVE_STRTOK_S)
|
||||
return strtok_s(s1, s2, ptr);
|
||||
|
||||
#else /* SDL implementation */
|
||||
/*
|
||||
* Adapted from _PDCLIB_strtok() of PDClib library at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue