__has_include is included in the C++ standard since C++17. However, in C, is just supported by compilers that implement it as an extension. As far as I am aware, just GCC and clang support it. Is there a way I can accomplish a similar effect portably in C? MSVC just seems to support it for C++.
__has_include was added to C23; see here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With