Skip to content

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

Open
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
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-26-multirotor-stdmax

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 26, 2026

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant