aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 15:56:45 -0400
committerTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 20:49:48 -0400
commitd327881c44ada520d6ea939af59bdd420906b99f (patch)
treea7dcb3b06579cce4d3bb51780b69043842413dd7 /src/yuzu_cmd/yuzu.cpp
parent72fc31f44b954f8e0ebf1a36c2c8565eec83be3a (diff)
build: fixes for clang-cl
- (std::min)/(std::max) where windows.h's macros are visible - LAMBDA_FORCEINLINE: always_inline under clang (clang-cl defines _MSC_VER but rejects [[msvc::forceinline]] on lambdas) - ImageBase::FindView: find_if, as MSVC's STL takes its vectorized find for ImageViewInfo under clang-cl and fails a size assertion - parentheses for -Wlogical-op-parentheses in the Ampere lowering
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index ffa1876c4f..3d9f50d4e5 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -434,7 +434,7 @@ static void RunKeyScript(InputCommon::InputSubsystem& input_subsystem) {
}
size_t start = 0;
while (start < list.size()) {
- const size_t end = std::min(list.find(',', start), list.size());
+ const size_t end = (std::min)(list.find(',', start), list.size());
const std::string item = list.substr(start, end - start);
if (const size_t colon = item.find(':'); colon != std::string::npos) {
const std::string when = item.substr(0, colon);