Bug #6784 ยป 0001-Fix-broken-pow-of-mingw.patch
include/ruby/win32.h | ||
---|---|---|
} /* extern "C" { */
|
||
#endif
|
||
#ifdef __MINGW64__
|
||
/*
|
||
* Use powl() instead of broken pow() of x86_64-w64-mingw32.
|
||
* This workaround will fix test failures in test_bignum.rb,
|
||
* test_fixnum.rb and test_float.rb etc.
|
||
*/
|
||
static inline double
|
||
fake_pow(double x, double y)
|
||
{
|
||
return powl(x, y);
|
||
}
|
||
#define pow fake_pow
|
||
#endif
|
||
#endif /* RUBY_WIN32_H */
|