summaryrefslogtreecommitdiff
path: root/www/mozilla/patches/patch-cd
diff options
context:
space:
mode:
Diffstat (limited to 'www/mozilla/patches/patch-cd')
-rw-r--r--www/mozilla/patches/patch-cd37
1 files changed, 37 insertions, 0 deletions
diff --git a/www/mozilla/patches/patch-cd b/www/mozilla/patches/patch-cd
new file mode 100644
index 00000000000..cef9da8640c
--- /dev/null
+++ b/www/mozilla/patches/patch-cd
@@ -0,0 +1,37 @@
+$NetBSD: patch-cd,v 1.1 2005/05/31 09:21:51 martin Exp $
+
+--- extensions/transformiix/source/base/Double.cpp.orig 2004-01-15 22:23:18.000000000 +0100
++++ extensions/transformiix/source/base/Double.cpp 2005-05-30 15:51:38.000000000 +0200
+@@ -48,6 +48,24 @@
+ * Utility class for doubles
+ */
+
++/* this should be some other predicate - like "has working math support" */
++#if defined(__NetBSD__) || (defined(__sun__) && defined(_LP64))
++MBool Double::isInfinite(double aDbl)
++{
++ return isinf(aDbl);
++}
++
++MBool Double::isNaN(double aDbl)
++{
++ return isnan(aDbl);
++}
++
++MBool Double::isNeg(double aDbl)
++{
++ return aDbl<0.0;
++}
++#else
++
+ //A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
+ #ifdef __FreeBSD__
+ #include <ieeefp.h>
+@@ -157,6 +175,7 @@
+ {
+ return (TX_DOUBLE_HI32(aDbl) & TX_DOUBLE_HI32_SIGNBIT) != 0;
+ }
++#endif
+
+ /*
+ * Converts the given String to a double, if the String value does not