Skip to content

Commit 0379c60

Browse files
khoa-nguyen-18KhiemNguyenT
authored andcommitted
hal: renesas: ra: Remove cmath include to avoid build error
Remove include <cmath> in bsp_tfu.h to avoid build error Signed-off-by: Khoa Nguyen <[email protected]>
1 parent b033822 commit 0379c60

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

drivers/ra/README

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,8 @@ Patch List:
114114

115115
* Reflect OFS setting for sdram from Zephyr device-tree value
116116
Impacted files:
117-
zephyr/ra/ra_cfg/fsp_cfg/bsp/**/bsp_mcu_family_cfg.h
117+
zephyr/ra/ra_cfg/fsp_cfg/bsp/**/bsp_mcu_family_cfg.h
118+
119+
* Remove include <cmath> in bsp_tfu.h to avoid build error
120+
Impacted files:
121+
zephyr/ra/portable/bsp_tfu.h

zephyr/ra/portable/bsp_tfu.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
**********************************************************************************************************************/
1313

1414
/* Mathematical Functions includes. */
15+
#include <math.h>
1516
#ifdef __cplusplus
16-
#include <cmath>
17-
#else
18-
#include <math.h>
17+
extern "C" {
1918
#endif
2019

2120
/** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */
@@ -215,4 +214,8 @@ BSP_TFU_INLINE void __atan2hypotf (float y_cord, float x_cord, float * atan2, fl
215214
/** Common macro for FSP header files. There is also a corresponding FSP_HEADER macro at the top of this file. */
216215
FSP_FOOTER
217216

217+
#ifdef __cplusplus
218+
}
219+
#endif
220+
218221
#endif /* RENESAS_TFU */

0 commit comments

Comments
 (0)