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
time-shift
Houtan Bastani 2016-10-11 15:49:06 +02:00
parent 05a906fa8b
commit 8b17af05d5
1 changed files with 9 additions and 0 deletions

View File

@ -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 <limits>
#define M_E 2.71828182845904523536