Skip to content

Conversation

kevinAlbs
Copy link
Collaborator

Summary

Use mn (not min) for minutes suffix

Background & Motivation

Working on CDRIVER-6102 encountered a compile error defining a duration of minutes:

d = mlib_duration(3, mn); // error: too few arguments provided to function-like macro invocation.

This was caused by min already being defined as a macro. A longer-term improvement may be to guard macros in every source file (similar to the C++ driver). This PR proposes a simpler short-term solution by renaming from min to mn since min is a commonly defined macro.

To avoid conflict with commonly defined `min` macro.
@kevinAlbs kevinAlbs requested a review from rcsanchez97 October 13, 2025 15:50
@kevinAlbs kevinAlbs marked this pull request as ready for review October 13, 2025 15:50
@kevinAlbs kevinAlbs requested a review from a team as a code owner October 13, 2025 15:50
@kevinAlbs kevinAlbs merged commit a2c33be into mongodb:master Oct 13, 2025
44 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants