summaryrefslogtreecommitdiffhomepage
path: root/tracker-test/test.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-21 12:01:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-21 12:01:43 +0200
commit107570e6288d266825724010a6f0149eaaac40db (patch)
treeab357889f6cd009e6e6a89e89657c377d4bb05ab /tracker-test/test.h
parent1c22f4a19a0cfa6b593b72754acb9ea97fbded13 (diff)
many: remove compat/pi-constant.hpp
With -D_USE_MATH_DEFINES MSVC defines the standard M_PI and friends. Since this preprocessor definition is now always passed as part of the build system for MSVC. We can use M_PI as if on a mission.
Diffstat (limited to 'tracker-test/test.h')
-rw-r--r--tracker-test/test.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tracker-test/test.h b/tracker-test/test.h
index 786d7705..acaee67d 100644
--- a/tracker-test/test.h
+++ b/tracker-test/test.h
@@ -2,7 +2,8 @@
#include "ui_test.h"
#include "api/plugin-api.hpp"
#include "compat/timer.hpp"
-#include "compat/pi-constant.hpp"
+
+#include <cmath>
class FTNoIR_Tracker : public ITracker
{
@@ -13,9 +14,8 @@ public:
void data(double *data) override;
private:
- static constexpr double pi = OPENTRACK_PI;
- static constexpr double r2d = 180 / pi;
- static constexpr double d2r = pi / 180;
+ static constexpr double r2d = 180 / M_PI;
+ static constexpr double d2r = M_PI / 180;
static const double incr[6];
double last_x[6];