move windows specific defines behind define-fence

This commit is contained in:
Dennis Luxen 2013-08-14 11:58:23 +02:00
parent c8e0e5eca2
commit 23f2c7e6f5

View File

@ -35,12 +35,12 @@ or see http://www.gnu.org/licenses/agpl.txt.
#include <iostream>
#include <ostream>
// 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<typename digitT>
digitT round(digitT x) {
return std::floor(x + 0.5);