diff --git a/core/include/xfa.h b/core/include/xfa.h index a1b068cd98..4651ae155a 100644 --- a/core/include/xfa.h +++ b/core/include/xfa.h @@ -167,5 +167,13 @@ _Pragma("GCC diagnostic ignored \"-Warray-bounds\"") */ #define XFA_LEN(type, name) (((const char*)name ## _end - (const char*)name) / sizeof(type)) +#ifdef __cplusplus +extern "C" { +#endif +/* making externc happy */ +#ifdef __cplusplus +} +#endif + /** @} */ #endif /* XFA_H */