mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-14 20:32:17 +01:00
16 lines
323 B
Diff
16 lines
323 B
Diff
--- ./xpcom/ds/nsMathUtils.h.orig
|
|
+++ ./xpcom/ds/nsMathUtils.h
|
|
@@ -151,7 +151,11 @@
|
|
// NOTE: '!!' casts an int to bool without spamming MSVC warning C4800.
|
|
return !!_finite(d);
|
|
#else
|
|
- return finite(d);
|
|
+#ifdef _GLIBCXX_CMATH
|
|
+ return std::isfinite(d);
|
|
+#else
|
|
+ return isfinite(d);
|
|
+#endif
|
|
#endif
|
|
}
|
|
|