[libcxx-commits] [libcxx] [libcxx] Undefine all supported C math functions (PR #94533)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 6 01:42:30 PDT 2024
philnik777 wrote:
> We trying to use libc++ with FreeRTOS which defines some of the `math.h` standard C library functions as macros which is allowed by the C standard but it breaks libc++ headers. libc++ should undefine the macro before providing the symbol of the same name (just like it already does for some of them).
Are you sure that the C standard allows this? The ones we `#undef`ine (`fpclassify`, `signbit`, `isfinite` and friends) are specified as macros in the standard, while `acos`, `atan` etc. are specified as functions.
https://github.com/llvm/llvm-project/pull/94533
More information about the libcxx-commits
mailing list