[flang-commits] [flang] [flang] fix build on FreeBSD after 4762c6557d15 (PR #86204)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Fri Mar 22 06:46:32 PDT 2024


https://github.com/luporl approved this pull request.

If there is no practical way to make FreeBSD's headers not define HUGE and still define XSI interfaces such as isascii or strnlen, then there's not much choice but to undef HUGE.

A possibly better option would be to include `<cmath>` and undef HUGE in `flang/lib/Decimal/big-radix-floating-point.h`, to avoid issues with other sources using its HUGE definition in the future. By doing this in every header file that declares a HUGE symbol, it should be possible to avoid hitting this issue again.

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


More information about the flang-commits mailing list