patch-umath_c 835 B

12345678910111213141516171819202122232425
  1. --- joe-3.7.orig/umath.c 2011-05-06 11:28:53.000000000 +0200
  2. +++ joe-3.7/umath.c 2011-05-16 09:10:08.000000000 +0200
  3. @@ -396,10 +396,18 @@
  4. double m_fabs(double n) { return fabs(n); }
  5. double m_erf(double n) { return erf(n); }
  6. double m_erfc(double n) { return erfc(n); }
  7. -double m_j0(double n) { return j0(n); }
  8. -double m_j1(double n) { return j1(n); }
  9. -double m_y0(double n) { return y0(n); }
  10. -double m_y1(double n) { return y1(n); }
  11. +#if defined(__UCLIBC__)
  12. +double m_j0(double n) { return 0; }
  13. +double m_j1(double n) { return 0; }
  14. +double m_y0(double n) { return 0; }
  15. +double m_y1(double n) { return 0; }
  16. +#else
  17. +double m_j0(double n) { return j0(n); }
  18. +double m_j1(double n) { return j1(n); }
  19. +double m_y0(double n) { return y0(n); }
  20. +double m_y1(double n) { return y1(n); }
  21. +#endif
  22. +
  23. double calc(BW *bw, unsigned char *s)
  24. {