From 107570e6288d266825724010a6f0149eaaac40db Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 21 Sep 2016 12:01:43 +0200 Subject: 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. --- tracker-rift-025/ftnoir_tracker_rift_025.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tracker-rift-025') diff --git a/tracker-rift-025/ftnoir_tracker_rift_025.cpp b/tracker-rift-025/ftnoir_tracker_rift_025.cpp index 51eed855..dcb97fc5 100644 --- a/tracker-rift-025/ftnoir_tracker_rift_025.cpp +++ b/tracker-rift-025/ftnoir_tracker_rift_025.cpp @@ -1,7 +1,6 @@ /* Copyright: "i couldn't care less what anyone does with the 5 lines of code i wrote" - mm0zct */ #include "ftnoir_tracker_rift_025.h" #include "api/plugin-api.hpp" -#include "compat/pi-constant.hpp" #include #include #include @@ -85,7 +84,7 @@ void Rift_Tracker::data(double *data) old_yaw = yaw_; } - static constexpr double r2d = 180 / OPENTRACK_PI; + static constexpr double r2d = 180 / M_PI; data[Yaw] = yaw_ * r2d; data[Pitch] = double(pitch) * r2d; -- cgit v1.2.3