From aa579849281d86427f12483ba6b45c230d380f11 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 15 Oct 2025 03:17:25 +0200 Subject: [PATCH] stdinc: add strtok_r prototype for clang-tidy --- include/SDL3/SDL_stdinc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h index 9a7dfb077b..06299beeba 100644 --- a/include/SDL3/SDL_stdinc.h +++ b/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); #endif +#if !defined(HAVE_STRTOK_R) && !defined(strtok_r) +char *strtok_r(char *str, const char *delim, char **saveptr); +#endif + #ifndef _WIN32 /* strdup is not ANSI but POSIX, and its prototype might be hidden... */ /* not for windows: might conflict with string.h where strdup may have