From fa8e4da6148fa00e77fc3a4be55769d40a1db057 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 7 Jul 2017 03:13:45 +0200 Subject: proto/simconnect: fix WinSxS library versions We had all the wrong versions assigned to comboboxen. With the correct versions, Prepar3D works with its own SimConnect redist named "SP2-XPACK". The library version is the same as SP2 and the combobox item exists only to help users. --- compat/math-imports.hpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 compat/math-imports.hpp (limited to 'compat/math-imports.hpp') diff --git a/compat/math-imports.hpp b/compat/math-imports.hpp new file mode 100644 index 00000000..ad70f361 --- /dev/null +++ b/compat/math-imports.hpp @@ -0,0 +1,45 @@ +#pragma once + +#include +#include + +namespace otr_math +{ + +using std::copysign; + +using std::sqrt; +using std::pow; + +using std::fabs; +using std::fmin; +using std::fmax; + +using std::atan; +using std::atan2; +using std::asin; +using std::acos; + +using std::sin; +using std::cos; +using std::tan; + +using std::round; +using std::fmod; + +using std::uintptr_t; +using std::intptr_t; + +using std::int64_t; +using std::int32_t; + +using std::uint64_t; +using std::uint32_t; + +template +static inline constexpr auto signum(T x) +{ + return (T() < x) - (x < T()); +} + +} // ns otr_math -- cgit v1.2.3