Browse Source

stdinc: add strtok_r prototype for clang-tidy

Anonymous Maarten 2 months ago
parent
commit
aa57984928
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/SDL3/SDL_stdinc.h

+ 4 - 0
include/SDL3/SDL_stdinc.h

@@ -6001,6 +6001,10 @@ size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t size);
 size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t size);
 size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t size);
 #endif
 #endif
 
 
+#if !defined(HAVE_STRTOK_R) && !defined(strtok_r)
+char *strtok_r(char *str, const char *delim, char **saveptr);
+#endif
+
 #ifndef _WIN32
 #ifndef _WIN32
 /* strdup is not ANSI but POSIX, and its prototype might be hidden... */
 /* strdup is not ANSI but POSIX, and its prototype might be hidden... */
 /* not for windows: might conflict with string.h where strdup may have
 /* not for windows: might conflict with string.h where strdup may have