From 5806f5f98cd5e74aa3ffc50573b7101a8de5caaa Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Thu, 28 Dec 2023 10:35:44 -0500 Subject: [PATCH] add M_PI definition if unavailable (e.g. in Windows) --- gtsam/3rdparty/cephes/cephes/mconf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtsam/3rdparty/cephes/cephes/mconf.h b/gtsam/3rdparty/cephes/cephes/mconf.h index 9f3deb628..08119ef85 100644 --- a/gtsam/3rdparty/cephes/cephes/mconf.h +++ b/gtsam/3rdparty/cephes/cephes/mconf.h @@ -102,6 +102,10 @@ #define cephes_isfinite(x) isfinite(x) #endif +#if !defined(M_PI) +#define M_PI 3.14159265358979323846 +#endif + /* Constants needed that are not available in the C standard library */ #define SCIPY_EULER 0.577215664901532860606512090082402431 /* Euler constant */ #define SCIPY_El 2.718281828459045235360287471352662498L /* e as long double */