simonfxr/cxx-header-utils

__STDC__ feature macro is non-exhaustive

Closed this issue · 4 comments

Ran into this while compiling fiber under MSVC.
<hu/lang.h> uses __STDC__ to detect C-mode, but this macro is not defined if the C standard version chosen is >= 11 (at least, on MSVC). I replaced it with __STDC_VERSION__ as a workaround since I don't need C < 11 anyway, not sure what a suitable crossplatform solution would be.

@sykhro Thx for reporting, it should be fixed. Please let me know if it works for you

Yup, that does the trick. Thanks!

(side note: I'm using this through fiber so this submodule would need to be updated there)

Okay, I updated it