diff --git a/typedefs.h b/typedefs.h index b98783334..2592f422b 100644 --- a/typedefs.h +++ b/typedefs.h @@ -35,12 +35,12 @@ or see http://www.gnu.org/licenses/agpl.txt. #include #include +// Necessary workaround for Windows as VS doesn't implement C99 +#ifdef _MSC_VER #ifndef M_PI #define M_PI 3.14159265358979323846 #endif -// Necessary workaround for Windows as VS doesn't implement C99 -#ifdef _MSC_VER template digitT round(digitT x) { return std::floor(x + 0.5);