Closed BrianSipos closed 10 months ago
C headers should include an "extern" wrapper between their own includes and the end include guard. Without these the header is unusable with a C++ compilation unit.
For example:
#include "..." #ifdef __cplusplus extern "C" { #endif ... #ifdef __cplusplus } #endif #endif /* GUARD_H */
C headers should include an "extern" wrapper between their own includes and the end include guard. Without these the header is unusable with a C++ compilation unit.
For example: