[libcxx-commits] [libcxx] [libcxx] Undefine all supported C math functions (PR #94533)

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 10 11:03:40 PDT 2024


petrhosek wrote:

I have reverted to the earlier implementation which shouldn't have this issue and include a comment with explanation for why this is needed.

> Interesting. But wouldn't that mean that we'd technically also have to `#undef memcpy` and every other C function that exists? That seems a bit excessive to me.

I believe we only need to do this for functions where we provide our own definition in libc++.

https://github.com/llvm/llvm-project/pull/94533


More information about the libcxx-commits mailing list