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.

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