Use SDL_wcslen in vendored gameinput.cpp

This commit is contained in:
Anonymous Maarten
2026-09-10 20:09:17 +02:00
committed by Anonymous Maarten
parent bfd81a0da4
commit 667eeb1a7e
2 changed files with 2 additions and 0 deletions

View File

@@ -162,6 +162,7 @@ def find_symbols_in_file(file: pathlib.Path) -> int:
allowed_extensions = [ ".c", ".cpp", ".m", ".h", ".hpp", ".cc" ]
excluded_paths = [
"src/core/windows/gameinput/gameinput.cpp",
"src/stdlib",
"src/libm",
"src/hidapi",

View File

@@ -47,6 +47,7 @@
#define memcpy_s(DST, DST_SIZE, SRC, SRC_SIZE) SDL_memcpy(DST, SRC, SDL_min(DST_SIZE, SRC_SIZE))
#define wcscpy_s(DST, DST_SIZE, SRC) SDL_wcslcpy(DST, SRC, DST_SIZE)
#define wcscat_s(DST, DST_SIZE, SRC) SDL_wcslcat(DST, SRC, DST_SIZE)
#define wcslen(S) SDL_wcslen(S)
#if __cplusplus < 2011003L
#define noexcept