From 8b17af05d57d626f52c0a2354d8cb9539752cc98 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 11 Oct 2016 15:49:06 +0200 Subject: [PATCH] bytecode: work around for isnan and isinf bug in C++ standard, glibc <= 2.23. Fixed by https://sourceware.org/bugzilla/show_bug.cgi?id=19439 --- mex/sources/bytecode/ErrorHandling.hh | 9 +++++++++ 1 file changed, 9 insertions(+) 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