forked from pool/mozjs102
Bjørn Lie
d12753e27e
I guess we keep that with us? as being the only consumer? OBS-URL: https://build.opensuse.org/request/show/1002335 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/mozjs102?expand=0&rev=1
17 lines
493 B
Diff
17 lines
493 B
Diff
diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
|
|
index 51d79f9c2ec59..fafd7d6fc1e0d 100644
|
|
--- a/modules/fdlibm/src/math_private.h
|
|
+++ b/modules/fdlibm/src/math_private.h
|
|
@@ -30,7 +30,11 @@
|
|
* Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
|
|
*/
|
|
|
|
+#if defined __FLT_EVAL_METHOD__ && (__FLT_EVAL_METHOD__ == 2)
|
|
+typedef long double __double_t;
|
|
+#else
|
|
typedef double __double_t;
|
|
+#endif
|
|
typedef __double_t double_t;
|
|
|
|
/*
|