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

Don't include the world with WIN32_LEAN_AND_MEAN #503

Merged
merged 1 commit into from May 3, 2017
Merged

Don't include the world with WIN32_LEAN_AND_MEAN #503

merged 1 commit into from May 3, 2017

Conversation

Quentin01
Copy link
Contributor

This PR reduces the size of what windows.h will include by using the define WIN32_LEAN_AND_MEAN.

In fact it also help to prevent bad order of inclusion because some header files in Windows need to be include in a good order and that can cause some problems when you use fmt without looking for what it is including.

@foonathan foonathan merged commit 4423490 into fmtlib:master May 3, 2017
@foonathan
Copy link
Contributor

Thanks for the PR.

@vitaut
Copy link
Contributor

vitaut commented May 6, 2017

It's OK to define WIN32_LEAN_AND_MEAN when compiling a library, but not when using fmt in the header-only mode for reasons discussed in #297, so I've adjusted one of the checks in c56d345.

bjoernthiel pushed a commit to AbberiorInstruments/fmt that referenced this pull request May 11, 2017
foonathan pushed a commit that referenced this pull request Jun 8, 2017
foonathan pushed a commit that referenced this pull request Jun 8, 2017
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.

None yet

3 participants