Skip to content

fix(airlib): protect MultirotorApiBase std::max from Windows macros - #9817

Open
Bartok (Bartok9) wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-26-multirotor-stdmax
Open

fix(airlib): protect MultirotorApiBase std::max from Windows macros#9817
Bartok (Bartok9) wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-26-multirotor-stdmax

Conversation

@Bartok9

Copy link
Copy Markdown

Use (std::max) in getAutoLookahead so Windows min/max macros cannot break the call (same pattern as SafetyEval).

AI-assisted; human-reviewed.

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Same (std::max) form as SafetyEval so NOMINMAX-less Windows builds compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant