Skip to content

Fix compatibility with min()/max() macros - #399

Merged
lemire merged 2 commits into
fastfloat:mainfrom
dg0yt:max
Aug 17, 2026
Merged

Fix compatibility with min()/max() macros#399
lemire merged 2 commits into
fastfloat:mainfrom
dg0yt:max

Conversation

@dg0yt

@dg0yt dg0yt commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

windows.h may define min() and max() macros. It is possible to guard against this on the consuming side. But this might get fragile with transitive dependencies. This PR suggests to avoid the problem in the headers.
Noticed while updating vcpkg ports (breaking build of opencv4 and opencv3).

@lemire

lemire commented Jul 23, 2026

Copy link
Copy Markdown
Member

Good.

@lemire
lemire merged commit 13ecd70 into fastfloat:main Aug 17, 2026
35 checks passed
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.

2 participants