Skip to content

Commit 7df3933

Browse files
committed
[MCUX-85656] Fixing cpp linkage issue
Cpp linkage issue would happen if a cpp file do below include: include "FreeRTOS.h" include "fsl_debug_console.h" system_*.h is cpp capable but FreeRTOS.h is no more cpp capable since FreeRTOS#1047 The change aims to align FreeRTOS-side declaration with CMSIS/device declaration. Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com>
1 parent 518b515 commit 7df3933

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

template/FreeRTOSConfig.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
#ifndef FREERTOS_CONFIG_H
3030
#define FREERTOS_CONFIG_H
3131

32+
/* *INDENT-OFF* */
33+
#ifdef __cplusplus
34+
extern "C" {
35+
#endif
36+
/* *INDENT-ON* */
37+
3238
#if defined(__ICCARM__)||defined(__CC_ARM)||defined(__GNUC__)
3339
#include <stdint.h>
3440
extern uint32_t SystemCoreClock;
@@ -95,4 +101,10 @@
95101
#endif
96102
#endif
97103

104+
/* *INDENT-OFF* */
105+
#ifdef __cplusplus
106+
}
107+
#endif
108+
/* *INDENT-ON* */
109+
98110
#endif /* FREERTOS_CONFIG_H */

0 commit comments

Comments
 (0)