Skip to content

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

Open
dg0yt wants to merge 2 commits into
fastfloat:mainfrom
dg0yt:max
Open

Fix compatibility with min()/max() macros#399
dg0yt wants to merge 2 commits into
fastfloat:mainfrom
dg0yt:max

Conversation

@dg0yt

@dg0yt dg0yt commented Jul 23, 2026

Copy link
Copy Markdown

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.

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