This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 2f09f873a157b7a755640775a213376dba318b98 Author: yangsong8 <[email protected]> AuthorDate: Fri Nov 13 20:38:50 2026 +0800 drivers/timers/imx_gpt: drop the EXTERN macro from imx_gpt.h The EXTERN macro is not used in imx_gpt.h and nxstyle rejects its definition. Use the plain extern "C" block instead. Assisted-by: Kiro:claude-opus-5-5 Signed-off-by: yangsong8 <[email protected]> --- include/nuttx/timers/imx_gpt.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/nuttx/timers/imx_gpt.h b/include/nuttx/timers/imx_gpt.h index f6a713af5cc..9bd7f9df6e8 100644 --- a/include/nuttx/timers/imx_gpt.h +++ b/include/nuttx/timers/imx_gpt.h @@ -215,11 +215,8 @@ static inline void imx_gpt_modreg(FAR struct imx_gpt_dev_s *dev, ****************************************************************************/ #ifdef __cplusplus -#define EXTERN extern "C" extern "C" { -#else -#define EXTERN extern #endif /**************************************************************************** @@ -286,7 +283,6 @@ void imx_gpt_ocu_on_match(FAR struct imx_gpt_ocu_s *ocu); void imx_gpt_icu_on_edge(FAR struct imx_gpt_icu_s *icu); #endif -#undef EXTERN #ifdef __cplusplus } #endif
