From 23f2c7e6f5f4c4cc162dd93c055a245247a9270b Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 14 Aug 2013 11:58:23 +0200 Subject: [PATCH] move windows specific defines behind define-fence --- typedefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);