No need to redefine PI constant for MinGW

time-shift
Sébastien Villemot 2019-01-08 17:46:36 +01:00
parent f9df2bee2f
commit ba609cce07
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
3 changed files with 1 additions and 35 deletions

View File

@ -9,18 +9,6 @@
#include <cstring>
#include <algorithm>
#ifdef __MINGW32__
# define __CROSS_COMPILATION__
#endif
#ifdef __MINGW64__
# define __CROSS_COMPILATION__
#endif
#ifdef __CROSS_COMPILATION__
# define M_PI 3.14159265358979323846
#endif
/* Just an easy constructor of sequence of booleans defaulting to
change everywhere. */

View File

@ -8,17 +8,7 @@
#include "product.hh"
#include "quasi_mcarlo.hh"
#ifdef __MINGW32__
# define __CROSS_COMPILATION__
#endif
#ifdef __MINGW64__
# define __CROSS_COMPILATION__
#endif
#ifdef __CROSS_COMPILATION__
# define M_PI 3.14159265358979323846
#endif
#include <cmath>
/* Here we just set a reference to the approximation, and create a new
|DynamicModel|. */

View File

@ -9,18 +9,6 @@
#include <cmath>
#include <limits>
#ifdef __MINGW32__
# define __CROSS_COMPILATION__
#endif
#ifdef __MINGW64__
# define __CROSS_COMPILATION__
#endif
#ifdef __CROSS_COMPILATION__
# define M_PI 3.14159265358979323846
#endif
using namespace ogp;
/** Here we just implement complementary error function without