Skip to content

fix portability: add min() macro#2243

Open
manuelinbrain wants to merge 1 commit into
apache:masterfrom
manuelinbrain:fix-min-macro-portability
Open

fix portability: add min() macro#2243
manuelinbrain wants to merge 1 commit into
apache:masterfrom
manuelinbrain:fix-min-macro-portability

Conversation

@manuelinbrain
Copy link
Copy Markdown

Some standalone builds (non-Mynewt environments) do not provide min() macro by default, which can lead to compilation failures in controller sources depending on the toolchain.

This change adds a min() definition to improve portability while avoiding conflicts when it is already defined elsewhere. This follows the same approach used in other parts of the codebase where similar compatibility guards are applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant