Skip to content

fix portability: replace min() macro with MIN()#2243

Merged
sjanc merged 1 commit into
apache:masterfrom
manuelinbrain:fix-min-macro-portability
May 29, 2026
Merged

fix portability: replace min() macro with MIN()#2243
sjanc merged 1 commit into
apache:masterfrom
manuelinbrain:fix-min-macro-portability

Conversation

@manuelinbrain

@manuelinbrain manuelinbrain commented May 27, 2026

Copy link
Copy Markdown
Contributor

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 replace min() macro with MIN() to improve portability.

@sjanc sjanc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

ble_ll_utils.h already provides MIN() macro which should be used instead

Replace min() macro usage with MIN() for portability reasons.
@manuelinbrain manuelinbrain force-pushed the fix-min-macro-portability branch from 7651395 to 744529b Compare May 29, 2026 12:58
@manuelinbrain

Copy link
Copy Markdown
Contributor Author

Hi,

It's already done. Thanks

@manuelinbrain manuelinbrain changed the title fix portability: add min() macro fix portability: replace min() macro with MIN() May 29, 2026
@sjanc sjanc merged commit 8f357e8 into apache:master May 29, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controller size/XS Extra small PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants