From a9b804e18c811c781a099a70b960f5bbde61257d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Jul 2016 12:14:51 +0200 Subject: some: replace hardcoded pi values with the same pi constant We can't depend on M_PI existing after including cmath. --- tracker-test/test.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tracker-test') diff --git a/tracker-test/test.h b/tracker-test/test.h index 500b28f4..afb11f6f 100644 --- a/tracker-test/test.h +++ b/tracker-test/test.h @@ -2,6 +2,7 @@ #include "ui_test.h" #include "opentrack/plugin-api.hpp" #include "opentrack-compat/timer.hpp" +#include "opentrack-compat/pi-constant.hpp" class FTNoIR_Tracker : public ITracker { @@ -12,7 +13,7 @@ public: void data(double *data) override; private: - static constexpr double pi = 3.14159265358979323846; + static constexpr double pi = OPENTRACK_PI; static constexpr double r2d = 180 / pi; static constexpr double d2r = pi / 180; -- cgit v1.2.3