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 bug #1790 #1906

Merged
merged 1 commit into from
Apr 8, 2021
Merged

fix bug #1790 #1906

merged 1 commit into from
Apr 8, 2021

Conversation

LonghronShen
Copy link
Contributor

I'm also stuck at the problem described in issue #1790.
So the PR fix the problem as is in the issue, it just works.

By the way, fully remove #include <fileapi.h> is also ok, but as for the code consistency, I think keeping it is a better way.

@@ -15,7 +15,11 @@
// under windows using fwrite to non-binary stream results in \r\r\n (see issue #1675)
// so instead we use ::FileWrite
#include <spdlog/details/windows_include.h>

#ifndef _USING_V110_SDK71_
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comment about the purpose of this ifdef. It woild hard to understand without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The USING_V110_SDK71 guard works when building based on a pre-8 version of Windows SDK, or trying to use the XP-toolset like vc141_xp.

@gabime gabime merged commit 57e31f0 into gabime:v1.x Apr 8, 2021
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