Fix compilation on clang-cl once and for all

- only pass -W things to c/cxx
- fix max/min macros, thanks microsoft

Signed-off-by: crueter <crueter@crueter.xyz>
This commit is contained in:
crueter 2025-09-07 22:21:20 -04:00 committed by crueter
parent f18c354fb6
commit 58b4ace06e
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
245 changed files with 624 additions and 604 deletions

View file

@ -283,9 +283,9 @@ Loader::AppLoader::Modules FindModules(Kernel::KProcess* process) {
// Ignore leading directories.
char* path_pointer = module_path.path.data();
char* path_end =
path_pointer + std::min(PathLengthMax, module_path.path_length);
path_pointer + (std::min)(PathLengthMax, module_path.path_length);
for (s32 i = 0; i < std::min(PathLengthMax, module_path.path_length) &&
for (s32 i = 0; i < (std::min)(PathLengthMax, module_path.path_length) &&
module_path.path[i] != '\0';
i++) {
if (module_path.path[i] == '/' || module_path.path[i] == '\\') {