patch-xpcom_ds_nsMathUtils_h 698 B

123456789101112131415161718192021
  1. --- mozilla-release.orig/xpcom/ds/nsMathUtils.h 2013-09-11 01:15:27.000000000 +0200
  2. +++ mozilla-release/xpcom/ds/nsMathUtils.h 2013-10-23 16:28:38.000000000 +0200
  3. @@ -98,12 +98,16 @@ inline NS_HIDDEN_(bool) NS_finite(double
  4. #ifdef WIN32
  5. // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800.
  6. return !!_finite(d);
  7. -#elif defined(XP_DARWIN)
  8. +#elif defined(XP_DARWIN) || defined(__UCLIBC__)
  9. // Darwin has deprecated |finite| and recommends |isfinite|. The former is
  10. // not present in the iOS SDK.
  11. return std::isfinite(d);
  12. #else
  13. - return finite(d);
  14. +#ifdef _GLIBCXX_CMATH
  15. + return std::isfinite(d);
  16. +#else
  17. + return isfinite(d);
  18. +#endif
  19. #endif
  20. }