mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
18 lines
493 B
Diff
18 lines
493 B
Diff
--- ./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
|
|
}
|
|
|