You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this is the only breaking code for C11, I guess we could have a condition on C standard for the compilation.
But I'd like to know what forces you to use C99 to compile HIDAPI?
Activity
mcuee commentedon Dec 20, 2025
What is the compiler used to trigger this issue?
Take note we only support MSYS2 GCC/clang and MSVC under Windows.
cscd98 commentedon Dec 20, 2025
Hi, it would had been the latest msys2 release on Windows.
mcuee commentedon Dec 20, 2025
I just tried latest MSYS2 mingw64 toolchain under Windows 11 and there is no issue to build latest hidapi git.
cscd98 commentedon Dec 20, 2025
It only occurs when setting the c standard to 99.
set(CMAKE_C_STANDARD 99)
Youw commentedon Dec 20, 2025
If this is the only breaking code for C11, I guess we could have a condition on C standard for the compilation.
But I'd like to know what forces you to use C99 to compile HIDAPI?
windows: guard static_assert with __STDC_VERSION__ for C99 compatibil…