Defines M_PI (cross compilation for Octave).

time-shift
Stéphane Adjemian (Charybdis) 2016-12-01 12:32:27 +01:00
parent 23642b3b6b
commit 1229372a6c
5 changed files with 63 additions and 2 deletions

View File

@ -14,6 +14,18 @@
#include <cstring> #include <cstring>
#include <algorithm> #include <algorithm>
#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| constructor code@>;
@<|ParameterSignal| copy constructor code@>; @<|ParameterSignal| copy constructor code@>;
@<|ParameterSignal::signalAfter| code@>; @<|ParameterSignal::signalAfter| code@>;

View File

@ -12,6 +12,18 @@
#include "product.h" #include "product.h"
#include "quasi_mcarlo.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| constructor code@>;
@<|ResidFunction| copy constructor code@>; @<|ResidFunction| copy constructor code@>;
@<|ResidFunction| destructor code@>; @<|ResidFunction| destructor code@>;

View File

@ -10,6 +10,19 @@
#include <cmath> #include <cmath>
#include <limits> #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; using namespace ogp;

View File

@ -6,7 +6,7 @@
*/ */
/* /*
* Copyright (C) 2010-2012 Dynare Team * Copyright (C) 2010-2016 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
@ -24,6 +24,18 @@
* along with Dynare. If not, see <http://www.gnu.org/licenses/>. * along with Dynare. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifdef __MINGW32__
#define __CROSS_COMPILATION__
#endif
#ifdef __MINGW64__
#define __CROSS_COMPILATION__
#endif
#ifdef __CROSS_COMPILATION__
#define M_PI 3.14159265358979323846
#endif
#include <octave/oct.h> #include <octave/oct.h>
#include <octave/f77-fcn.h> #include <octave/f77-fcn.h>

View File

@ -2,7 +2,7 @@
** **
** Pseudo code of the algorithm is given at http://home.online.no/~pjacklam/notes/invnorm ** 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. ** This file is part of Dynare.
** **
@ -40,6 +40,18 @@ using namespace std;
#endif #endif
#define DEBUG_OMP 0 #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<typename T> T icdf( const T uniform ) template<typename T> T icdf( const T uniform )
/* /*
** This function invert the gaussian cumulative distribution function. ** This function invert the gaussian cumulative distribution function.