From 2bc7bb474084f8aa1e544936d5329c93787d2442 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 2 Dec 2020 12:19:31 +0100 Subject: [PATCH] core/xfa: make externc happy --- core/include/xfa.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */