From e4758e0183139c0a236138e1d6252b2983d71d51 Mon Sep 17 00:00:00 2001 From: AlexDuan <417921451@qq.com> Date: Fri, 10 Sep 2021 12:59:50 +0800 Subject: [PATCH] ifndef MPI then define --- src/query/inc/tdigest.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/query/inc/tdigest.h b/src/query/inc/tdigest.h index 582ad338ac..ef347f1b9e 100644 --- a/src/query/inc/tdigest.h +++ b/src/query/inc/tdigest.h @@ -22,6 +22,10 @@ #ifndef TDIGEST_H #define TDIGEST_H +#ifndef M_PI +#define M_PI 3.14159265358979323846264338327950288 /* pi */ +#endif + #define COMPRESSION 400 #define GET_CENTROID(compression) (ceil(compression * M_PI / 2) + 1) #define GET_THRESHOLD(compression) (7.5 + 0.37 * compression - 2e-4 * pow(compression, 2)) -- GitLab