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. --- opentrack-compat/pi-constant.hpp | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 opentrack-compat/pi-constant.hpp (limited to 'opentrack-compat') diff --git a/opentrack-compat/pi-constant.hpp b/opentrack-compat/pi-constant.hpp new file mode 100644 index 00000000..52b98a7f --- /dev/null +++ b/opentrack-compat/pi-constant.hpp @@ -0,0 +1,3 @@ +#pragma once + +#define OPENTRACK_PI 3.14159265358979323846 -- cgit v1.2.3