Hello, If it helps, the following change gets "tdigest.c" to compile on MacOS. #if !defined(__APPLE__) #define __LONG_LONG_MAX__ LLONG_MAX // may need some other term for Mac/linux #define __DBL_MAX__ DBL_MAX #endif //#if !defined(__APPLE__) All the best, Tony.