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

Added #define WIN32_LEAN_AND_MEAN before including windows.h #1729

Merged
merged 2 commits into from
Jun 17, 2020
Merged

Added #define WIN32_LEAN_AND_MEAN before including windows.h #1729

merged 2 commits into from
Jun 17, 2020

Conversation

gabime
Copy link
Contributor

@gabime gabime commented Jun 15, 2020

This prevents winsock2 redefinition warnings (e.g. see issue gabime/spdlog#1589) and minimizes the stuff that windows.h includes.

I also reversed the #ifdefcondition to avoid redefinition warnings if either NOMINMAX or WIN32_LEAN_AND_MEAN is already defined.

@vitaut vitaut merged commit 5aa5c98 into fmtlib:master Jun 17, 2020
@vitaut
Copy link
Contributor

vitaut commented Jun 17, 2020

Thanks!

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