diff --git a/mex/sources/bytecode/ErrorHandling.hh b/mex/sources/bytecode/ErrorHandling.hh index 1e537cb39..ecb343380 100644 --- a/mex/sources/bytecode/ErrorHandling.hh +++ b/mex/sources/bytecode/ErrorHandling.hh @@ -37,6 +37,15 @@ # define CHAR_LENGTH 2 #endif +//Work around for: https://sourceware.org/bugzilla/show_bug.cgi?id=19439 +#ifndef __builtin_isnan +# define isnan(x) std::isnan(x) +#endif + +#ifndef __builtin_isinf +# define isinf(x) std::isinf(x) +#endif + #ifdef _MSC_VER #include #define M_E 2.71828182845904523536