Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSVC: Dont define min/max macros in minwindef.h #6308

Merged
merged 1 commit into from Aug 24, 2017

Conversation

adrido
Copy link
Contributor

@adrido adrido commented Aug 24, 2017

I cant tell if this was introduced due to the latest Visual Studio update, or if this was caused by the cleanups of @nerzhul .

In minwindef.h (included by Windows.h) are macros defined for min and max that conflicting with std::min/std::max since today. Defining NOMINMAX disables the definition of them.

@nerzhul nerzhul added the @ Build CMake, build scripts, official builds, compiler and linker errors label Aug 24, 2017
@nerzhul
Copy link
Member

nerzhul commented Aug 24, 2017

if i works on mingw i will merge it, it's okay for me, trivial

@nerzhul nerzhul added the Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines label Aug 24, 2017
@nerzhul nerzhul merged commit 017840f into minetest:master Aug 24, 2017
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 11, 2019
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 23, 2019
@adrido adrido deleted the no-min-max branch February 27, 2019 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Build CMake, build scripts, official builds, compiler and linker errors Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants