diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-20 12:25:49 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-20 12:25:49 +0100 |
commit | a74b8da459dcdee1d1fc633d9d1856fdb89fd7bd (patch) | |
tree | 291ff6b5793e74c8994696a7fe26e82f6f646601 /package/firefox/patches/patch-xpcom_ds_nsMathUtils_h | |
parent | 33adad70313bb73464cbd002370cd14bade79a54 (diff) |
fix musl compile, when xorg package collection is selected. X still does not work with musl
Diffstat (limited to 'package/firefox/patches/patch-xpcom_ds_nsMathUtils_h')
-rw-r--r-- | package/firefox/patches/patch-xpcom_ds_nsMathUtils_h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/package/firefox/patches/patch-xpcom_ds_nsMathUtils_h b/package/firefox/patches/patch-xpcom_ds_nsMathUtils_h index 5a1a81c06..b275a14ec 100644 --- a/package/firefox/patches/patch-xpcom_ds_nsMathUtils_h +++ b/package/firefox/patches/patch-xpcom_ds_nsMathUtils_h @@ -1,6 +1,6 @@ --- mozilla-release.orig/xpcom/ds/nsMathUtils.h 2013-09-11 01:15:27.000000000 +0200 -+++ mozilla-release/xpcom/ds/nsMathUtils.h 2013-10-14 14:05:43.000000000 +0200 -@@ -98,7 +98,7 @@ inline NS_HIDDEN_(bool) NS_finite(double ++++ mozilla-release/xpcom/ds/nsMathUtils.h 2013-10-23 16:28:38.000000000 +0200 +@@ -98,12 +98,16 @@ inline NS_HIDDEN_(bool) NS_finite(double #ifdef WIN32 // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800. return !!_finite(d); @@ -9,3 +9,13 @@ // Darwin has deprecated |finite| and recommends |isfinite|. The former is // not present in the iOS SDK. return std::isfinite(d); + #else +- return finite(d); ++#ifdef _GLIBCXX_CMATH ++ return std::isfinite(d); ++#else ++ return isfinite(d); ++#endif + #endif + } + |