Defines M_PI, M_SQRT2 and finite() in bytecode...

... Which are not in standard C/C++ (otherwise compilation of the mex for Octave
with -std=c++11 fails).
time-shift
Stéphane Adjemian (Charybdis) 2016-11-30 22:18:44 +01:00
parent 5f85d3a200
commit 23642b3b6b
1 changed files with 13 additions and 0 deletions

View File

@ -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;