Skip to content

Define NOMINMAX and various warning suppressions on MSVC - #707

Open
fredemmott wants to merge 4 commits into
trabucayre:masterfrom
fredemmott:msvc-flags
Open

Define NOMINMAX and various warning suppressions on MSVC#707
fredemmott wants to merge 4 commits into
trabucayre:masterfrom
fredemmott:msvc-flags

Conversation

@fredemmott

Copy link
Copy Markdown

Builds on (and includes) #706

I've kept the (bool > 0) thing as a separate commit as I'm unsure if your (_verbose > 0) checks are are a bug or if they're future-proofing in case of multiple verbosity levels in the future.

- disable unwanted/irrelevant warnings
- define `NOMINMAX` so windows headers don't break `std::min()` and `std::max()` calls

refs trabucayre#704
The real `<Windows.h>` pulls in a load of stuff, and defines a lot of lower-case macros, e.g. `byte`, which with `using namespace std`, leads to conflicts with `std::byte`

refs trabucayre#704
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.

1 participant