diff --git a/ext/cityhash/city.cpp b/ext/cityhash/city.cpp index 54cc2a727c..c1c932366c 100644 --- a/ext/cityhash/city.cpp +++ b/ext/cityhash/city.cpp @@ -58,6 +58,9 @@ static uint32 UNALIGNED_LOAD32(const char *p) { #define bswap_32(x) OSSwapInt32(x) #define bswap_64(x) OSSwapInt64(x) #else +#if defined(ANDROID) && !defined(UINT64_C) +#define UINT64_C(c) static_cast(c ## ULL) +#endif #define bswap_32(x) (0 | ((x & 0x000000ff) << 24) \ | ((x & 0x0000ff00) << 8) \ | ((x & 0x00ff0000) >> 8) \