I am writing a little C project. Since I want it to also be included from C++ I thought about using C++ guards to make it work, like:
#ifdef __cplusplus
extern "C" {
#endif
// code
#ifdef __cplusplus
}
#endif
In my project I have some headers that must not be included directly from an eventual C++ file using the project. However I am facing the doubt: is putting C++ guards in that header files too a needed precaution?