Skip to content

Fix a <windows.h> horror: min and max macros colliding with std#21

Merged
neacsum merged 1 commit intoneacsum:masterfrom
lanurmi:nominmax
Dec 15, 2025
Merged

Fix a <windows.h> horror: min and max macros colliding with std#21
neacsum merged 1 commit intoneacsum:masterfrom
lanurmi:nominmax

Conversation

@lanurmi
Copy link
Contributor

@lanurmi lanurmi commented Dec 15, 2025

If you #include <windows.h> without defining NOMINMAX first, the global namespace is polluted with min() and max() macros that prevent compiling any code that uses std::min()/std::max().

If you #include <windows.h> without defining NOMINMAX first, the global
namespace is polluted with min() and max() macros that prevent compiling
any code that uses std::min()/std::max().
@neacsum neacsum merged commit 921dfa1 into neacsum:master Dec 15, 2025
2 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