diff --git a/mex/sources/bytecode/ErrorHandling.hh b/mex/sources/bytecode/ErrorHandling.hh index ecb343380..760d0ec7c 100644 --- a/mex/sources/bytecode/ErrorHandling.hh +++ b/mex/sources/bytecode/ErrorHandling.hh @@ -143,6 +143,19 @@ class MSVCpp_missings }; #endif +#ifdef __MINGW32__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __MINGW64__ +#define __CROSS_COMPILATION__ +#endif + +#ifdef __CROSS_COMPILATION__ +#define M_PI 3.14159265358979323846 +#define M_SQRT2 1.41421356237309504880 +#define finite(x) !std::isfinite(x) +#endif //#define DEBUG using namespace std;