Index: src/__support/CPP/limits.h =================================================================== --- src/__support/CPP/limits.h +++ src/__support/CPP/limits.h @@ -11,6 +11,13 @@ #include +// Some older gcc distributions don't define these for 32 bit targets. +#ifndef LLONG_MAX +#define LLONG_MAX (~0LL ^ (1LL << 63)) +#define LLONG_MIN (1LL << 63) +#define ULLONG_MAX (~0ULL) +#endif + namespace __llvm_libc { namespace cpp {