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

npcap_sdk: add mingw support with workaround for unrecognized SAL #5390

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

Doekin
Copy link
Contributor

@Doekin Doekin commented Oct 1, 2024

Workaround for Unrecognized MSVC SAL Annotation _Post_invalid_

Problem

Npcap's introduction of specific SAL annotations in this commit has created compatibility issues with MinGW, which does not recognize the _Post_invalid_ annotation.

Possible Solutions

  • Revert to a Previous Version: Use an earlier version of npcap that lacks these SAL annotations.
  • Upgrade MinGW Toolchain: Switch to a newer MinGW version that #define _Post_invalid_ in sal.h. See the related MinGW commit.
  • Wait for Next Npcap SDK Release: The upcoming npcap_sdk release is expected to resolve this issue, as mentioned in this discussion. However, it's worth noting that the last release was in 2022.

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.

1 participant