[libc-commits] [libc] [libc] Add limits.h header. (PR #78887)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Jan 22 10:53:27 PST 2024
nickdesaulniers wrote:
src/__support/CPP/limits.h is including limits.h and getting glibc's limits.h, not the compilers'.
```
In file included from /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include-fixed/limits.h:203,
from /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include-fixed/syslimits.h:7,
from /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include-fixed/limits.h:34,
--> from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/CPP/limits.h:16,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/str_to_integer.h:12,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/inttypes/strtoumax.cpp:11:
/usr/include/limits.h:145:17: error: missing binary operator before token "("
145 | #if __GLIBC_USE (IEC_605
```
https://github.com/llvm/llvm-project/pull/78887
More information about the libc-commits
mailing list