From 044365b401759306e206347ca60064fd007d5b0b Mon Sep 17 00:00:00 2001 From: Jakob Ruhe Date: Thu, 1 Dec 2022 16:33:33 +0100 Subject: [PATCH] fix: Add `extern "C"` to `em_usart.h` Put most of the contents of `platform/emlib/inc/emusart.h` into a `extern "C"` block. It looks like this is how it has been done for most other header files. --- platform/emlib/inc/em_eusart.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/emlib/inc/em_eusart.h b/platform/emlib/inc/em_eusart.h index afe84d9797d..b24fd365431 100644 --- a/platform/emlib/inc/em_eusart.h +++ b/platform/emlib/inc/em_eusart.h @@ -35,6 +35,10 @@ #include "em_eusart_compat.h" #include +#ifdef __cplusplus +extern "C" { +#endif + /* *INDENT-OFF* */ // ***************************************************************************** /// @addtogroup eusart EUSART - Extended USART @@ -1155,6 +1159,10 @@ __STATIC_INLINE void EUSART_IntSet(EUSART_TypeDef *eusart, uint32_t flags) eusart->IF_SET = flags; } +#ifdef __cplusplus +} +#endif + /** @} (end addtogroup eusart) */ #endif /* defined(EUART_PRESENT) || defined(EUSART_PRESENT) */ #endif /* EM_EUSART_H */