Skip to content

Conversation

@k1-801
Copy link

@k1-801 k1-801 commented Dec 30, 2025

Fixes #766

Defining WIN32_LEAN_AND_MEAN removes some rarely-used includes from windows.h, which MSVC uses to speed up compilation. Unfortunately, hidapi_cfgmgr32.h relies on one of those headers. This PR fixes the missing header, as well as makes use of the speed-up define, simultaneously making the build scenarios more uniform regardless of whether the target project uses it or not.

@k1-801
Copy link
Author

k1-801 commented Dec 31, 2025

The CI build fails in the same place as #765. Local build succeeds with a warning in the SDK.

@k1-801 k1-801 marked this pull request as draft December 31, 2025 10:22
@k1-801
Copy link
Author

k1-801 commented Dec 31, 2025

this change also raises a warning in local copilation which can not be fixed, it is a bug in SDK:
https://developercommunity.visualstudio.com/t/issue-in-windows-sdk-header/383016

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.

MSVC build with hidapi in-source fails with errors related to WINAPI

1 participant