mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 13:50:11 +00:00
[libc] Fix size_t used without including stddef.h in CPP/limit.h. (#78861)
This commit is contained in:
parent
0175a1e4d3
commit
1cc7cd46a9
@ -20,7 +20,7 @@ namespace cpp {
|
||||
|
||||
// Some older gcc distributions don't define these for 32 bit targets.
|
||||
#ifndef LLONG_MAX
|
||||
constexpr size_t LLONG_BIT_WIDTH = sizeof(long long) * 8;
|
||||
constexpr unsigned int LLONG_BIT_WIDTH = sizeof(long long) * 8;
|
||||
constexpr long long LLONG_MAX = ~0LL ^ (1LL << (LLONG_BIT_WIDTH - 1));
|
||||
constexpr long long LLONG_MIN = 1LL << (LLONG_BIT_WIDTH - 1);
|
||||
constexpr unsigned long long ULLONG_MAX = ~0ULL;
|
||||
|
Loading…
Reference in New Issue
Block a user