diff options
author | Brooks Davis <brooks@one-eyed-alien.net> | 2024-04-09 15:55:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 15:55:11 -0700 |
commit | 788be0d9fc6aeca548c90bac5ebe6990dd3c66ec (patch) | |
tree | 91cf451cff1dd66edd852e6d12d668f089b65f17 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4a04fca9e2f936264bccba58081893c6703de7ec (diff) | |
download | llvm-788be0d9fc6aeca548c90bac5ebe6990dd3c66ec.zip llvm-788be0d9fc6aeca548c90bac5ebe6990dd3c66ec.tar.gz llvm-788be0d9fc6aeca548c90bac5ebe6990dd3c66ec.tar.bz2 |
[flang] fix build on *BSD after 4762c6557d15 (#86204)
The HUGE definition collides with the HUGE macro from math.h. Unlike the
fix in 3149c934cb26 (#84478) (largely reverted in f95710c76519), add
another #undef HUGE since there is no practical way to make FreeBSD's
headers not define HUGE and still define XSI interfaces such as isascii
or strnlen.
Update comments above `#undef HUGE` instances to reflect the fact that
all major BSD versions (I checked DragonFly, FreeBSD, NetBSD, and
OpenBSD) leak the HUGE macro from math.h to various degrees.
Fixes #86038
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions