Fix windows builds that don't include Windows.h#171
Merged
klemens-morgenstern merged 2 commits intoboostorg:developfrom Oct 29, 2020
Merged
Fix windows builds that don't include Windows.h#171klemens-morgenstern merged 2 commits intoboostorg:developfrom
klemens-morgenstern merged 2 commits intoboostorg:developfrom
Conversation
…f SAL annoations, not neccessary for proper signature
Collaborator
|
What version of MSVC are you using? I ran into issues with MSVC which is why I added the annotations. |
Contributor
Author
|
Microsoft Visual Studio Community 2019 |
Contributor
Author
|
I'll also add that __kernel_entry usage only causes issues with boost 1.73 and newer, because of this change in boost/winapi boostorg/winapi@c523cc4 Here is a part of /showIncludes trace with older version specstrings is where that define lives |
|
@klemens-morgenstern any updates on this? I can confirm that this PR fixes the issue on latest MSVC:
from Visual Studio 2019 16.7. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removed __kernel_entry usage from Nt* function typedefs, is is part of SAL annoations, not neccessary for proper signature and calling convention
Replaced global DWORD with ::boost::winapi::DWORD_
Also should fix #96 (not verified, I use msvc, not mingw but error appears on the same line)