nuttx/include/cxx
nicolasWDC 065da307f5 include/cxx/cmath: Define FLT_EVAL_METHOD from compiler builtin
Some GCC-based external toolchains define **FLT_EVAL_METHOD** but do not
leave the standard FLT_EVAL_METHOD macro visible when the NuttX cmath shim
evaluates its guards.

As a result, C math symbols such as log and pow are declared by NuttX
math.h, but are not imported into namespace std by include/cxx/cmath.

Define FLT_EVAL_METHOD locally from **FLT_EVAL_METHOD** when needed in the
non-CONFIG_LIBM_TOOLCHAIN path.

This fixes compilation of valid C++ code using std::log and std::pow with
arm-none-eabi-g++.

Signed-off-by: nicolasWDC <nicolasWDC@users.noreply.github.com>
2026-06-08 15:31:31 -03:00
..
cassert include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cctype include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cerrno include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cinttypes include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
climits include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
clocale include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cmath include/cxx/cmath: Define FLT_EVAL_METHOD from compiler builtin 2026-06-08 15:31:31 -03:00
csignal include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cstdarg include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cstdbool include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cstddef cxx/cstddef: expose 'max_align_t' 2025-12-09 18:03:10 +08:00
cstdint
cstdio include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cstdlib !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
cstring include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
ctime include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cwchar include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
cwctype include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00