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

Fix macros WIN32_LEAN_AND_MEAN typo #112

Merged
merged 1 commit into from
Dec 22, 2017
Merged

Fix macros WIN32_LEAN_AND_MEAN typo #112

merged 1 commit into from
Dec 22, 2017

Conversation

vladimirgamalyan
Copy link
Contributor

@vladimirgamalyan vladimirgamalyan commented Dec 22, 2017

Fix macros WIN32_LEAN_AND_MEAN typo

Description

This pull request changes a define of macros WIN32_MEAN_AND_LEAN to WIN32_LEAN_AND_MEAN. This should increase compilation speed.
Also, it removes warnings when a header 'Winsock2.h' be included.

GitHub Issues

Fix macros `WIN32_LEAN_AND_MEAN` typo
@onqtam
Copy link
Member

onqtam commented Dec 22, 2017

look at what I found :D

There are a few other mentions of WIN32_MEAN_AND_LEAN across the web but I guess they are all wrong.

Thanks for this - merging!

@onqtam onqtam merged commit 773b222 into doctest:dev Dec 22, 2017
@onqtam onqtam changed the title Update doctest_impl.h Fix macros WIN32_LEAN_AND_MEAN typo Dec 22, 2017
@vladimirgamalyan vladimirgamalyan deleted the patch-1 branch December 22, 2017 10:08
@vladimirgamalyan
Copy link
Contributor Author

Yeah, usually it's not clear to see when the macro works properly. Actually, I found it when I added a header "Winsock2.h", which conflicts with "Winsock.h". Last one should not be included in "Windows.h" by WIN32_LEAN_AND_MEAN macro.

onqtam pushed a commit that referenced this pull request Feb 6, 2018
Fix macros `WIN32_LEAN_AND_MEAN` typo
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