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
parent
5f85d3a200
commit
23642b3b6b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue