SDL_stdinc.h: provide a prototype for strdup for __clang_analyzer__ case

Because strdup is not ANSI but POSIX, and its prototype might be hidden..

... and re-enable clang-tidy in CI for LoongArch64.

Fixes:  https://github.com/libsdl-org/SDL/issues/11219.
This commit is contained in:
Ozkan Sezer
2024-10-16 21:24:56 +03:00
committed by Ozkan Sezer
parent d9df87f19f
commit 3ebfdb04be
2 changed files with 3 additions and 1 deletions

View File

@@ -632,7 +632,6 @@ def spec_to_job(spec: JobSpec, key: str, trackmem_symbol_names: bool) -> JobDeta
))
job.shared_lib = SharedLibType.SO_0
job.static_lib = StaticLibType.A
job.clang_tidy = False
case SdlPlatform.N3ds:
job.shared = False
job.apt_packages = ["ninja-build", "binutils"]