diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-30 13:03:16 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-30 13:03:16 +0200 |
commit | f8f12a1762ad21637c24bf91b05725e792871b0f (patch) | |
tree | 0b941bb30869ad0582f3fa8a386dd25adf1e1f71 /community/firefox/0002-Use-C99-math-isfinite.patch | |
parent | 929dd180fe472aa962dc6603a807be97fa7fbb06 (diff) | |
download | aports-f8f12a1762ad21637c24bf91b05725e792871b0f.tar.bz2 aports-f8f12a1762ad21637c24bf91b05725e792871b0f.tar.xz |
community/firefox: moved from main
Diffstat (limited to 'community/firefox/0002-Use-C99-math-isfinite.patch')
-rw-r--r-- | community/firefox/0002-Use-C99-math-isfinite.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/firefox/0002-Use-C99-math-isfinite.patch b/community/firefox/0002-Use-C99-math-isfinite.patch new file mode 100644 index 0000000000..ba4f5cfb3d --- /dev/null +++ b/community/firefox/0002-Use-C99-math-isfinite.patch @@ -0,0 +1,17 @@ +--- ./xpcom/ds/nsMathUtils.h.orig ++++ ./xpcom/ds/nsMathUtils.h +@@ -104,12 +104,12 @@ + #ifdef WIN32 + // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800. + return !!_finite(aNum); +-#elif defined(XP_DARWIN) ++#elif defined(XP_DARWIN) || defined(_GLIBCXX_CMATH) + // Darwin has deprecated |finite| and recommends |isfinite|. The former is + // not present in the iOS SDK. + return std::isfinite(aNum); + #else +- return finite(aNum); ++ return isfinite(aNum); + #endif + } + |