patch-missing_isinf_c 426 B

12345678910111213141516171819
  1. --- ruby-2.0.0-p247.orig/missing/isinf.c 2011-05-15 13:55:52.000000000 +0200
  2. +++ ruby-2.0.0-p247/missing/isinf.c 2013-10-24 09:18:55.000000000 +0200
  3. @@ -5,6 +5,7 @@
  4. #define _IEEE 1
  5. #include <nan.h>
  6. +
  7. int
  8. isinf(double n)
  9. {
  10. @@ -52,6 +53,8 @@ static double zero(void) { return 0.0; }
  11. static double one (void) { return 1.0; }
  12. static double inf (void) { return one() / zero(); }
  13. +#undef isinf
  14. +
  15. int
  16. isinf(double n)
  17. {