diff options
author | Peter Collingbourne <pcc@google.com> | 2022-03-23 18:07:26 -0700 |
---|---|---|
committer | Peter Collingbourne <pcc@google.com> | 2022-03-24 11:11:11 -0700 |
commit | 08b968b282756b44a4980a9417909c6710cdaafe (patch) | |
tree | 516d23eccdae7200fbaaa3eafb9e0e3e590af881 /libc/malloc_debug/malloc_debug.cpp | |
parent | acd91c22e934732646d70e0390973a273bf6c0ec (diff) |
Avoid usage of LONG_BIT in signal headers.
Clang has its own limits.h which is ahead of ours on the inclusion
path. This header uses include_next to include our header, but only
in hosted mode. This means that in freestanding mode we don't get our
limits.h macro definitions, including LONG_BIT. This ends up causing
our signal.h to produce errors when included in freestanding mode on
32-bit platforms.
Fix the errors by replacing usage of LONG_BIT with (8 * sizeof(long))
in the signal headers.
Change-Id: I18ec7b6876d5f862beae09f0c011128eef97c869
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions