diff --git a/dynare++/integ/cc/vector_function.cweb b/dynare++/integ/cc/vector_function.cweb index d84274180..e2197f541 100644 --- a/dynare++/integ/cc/vector_function.cweb +++ b/dynare++/integ/cc/vector_function.cweb @@ -14,6 +14,18 @@ #include #include +#ifdef __MINGW32__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __MINGW64__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __CROSS_COMPILATION__ +#define M_PI 3.14159265358979323846 +#endif + @<|ParameterSignal| constructor code@>; @<|ParameterSignal| copy constructor code@>; @<|ParameterSignal::signalAfter| code@>; diff --git a/dynare++/kord/global_check.cweb b/dynare++/kord/global_check.cweb index ea7782153..0c6195a6d 100644 --- a/dynare++/kord/global_check.cweb +++ b/dynare++/kord/global_check.cweb @@ -12,6 +12,18 @@ #include "product.h" #include "quasi_mcarlo.h" +#ifdef __MINGW32__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __MINGW64__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __CROSS_COMPILATION__ +#define M_PI 3.14159265358979323846 +#endif + @<|ResidFunction| constructor code@>; @<|ResidFunction| copy constructor code@>; @<|ResidFunction| destructor code@>; diff --git a/dynare++/parser/cc/tree.cpp b/dynare++/parser/cc/tree.cpp index 8ff4267c6..3ab37e776 100644 --- a/dynare++/parser/cc/tree.cpp +++ b/dynare++/parser/cc/tree.cpp @@ -10,6 +10,19 @@ #include #include +#ifdef __MINGW32__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __MINGW64__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __CROSS_COMPILATION__ +#define M_PI 3.14159265358979323846 +#endif + + using namespace ogp; diff --git a/mex/sources/qzcomplex/qzcomplex.cc b/mex/sources/qzcomplex/qzcomplex.cc index cfd13cfa7..7b95ce76f 100644 --- a/mex/sources/qzcomplex/qzcomplex.cc +++ b/mex/sources/qzcomplex/qzcomplex.cc @@ -6,7 +6,7 @@ */ /* - * Copyright (C) 2010-2012 Dynare Team + * Copyright (C) 2010-2016 Dynare Team * * This file is part of Dynare. * @@ -24,6 +24,18 @@ * along with Dynare. If not, see . */ +#ifdef __MINGW32__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __MINGW64__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __CROSS_COMPILATION__ +#define M_PI 3.14159265358979323846 +#endif + #include #include diff --git a/mex/sources/sobol/gaussian.hh b/mex/sources/sobol/gaussian.hh index 2fee95097..450611773 100644 --- a/mex/sources/sobol/gaussian.hh +++ b/mex/sources/sobol/gaussian.hh @@ -2,7 +2,7 @@ ** ** Pseudo code of the algorithm is given at http://home.online.no/~pjacklam/notes/invnorm ** -** Copyright (C) 2010-2011 Dynare Team +** Copyright (C) 2010-2016 Dynare Team ** ** This file is part of Dynare. ** @@ -40,6 +40,18 @@ using namespace std; #endif #define DEBUG_OMP 0 +#ifdef __MINGW32__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __MINGW64__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __CROSS_COMPILATION__ +#define M_PI 3.14159265358979323846 +#endif + template T icdf( const T uniform ) /* ** This function invert the gaussian cumulative distribution function.