mirror of
https://github.com/apache/nuttx.git
synced 2026-09-14 22:50:25 +00:00
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> |
||
|---|---|---|
| .. | ||
| cassert | ||
| cctype | ||
| cerrno | ||
| cinttypes | ||
| climits | ||
| clocale | ||
| cmath | ||
| csignal | ||
| cstdarg | ||
| cstdbool | ||
| cstddef | ||
| cstdint | ||
| cstdio | ||
| cstdlib | ||
| cstring | ||
| ctime | ||
| cwchar | ||
| cwctype | ||