Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
16 lines
No EOL
489 B
Diff
16 lines
No EOL
489 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,5 +30,9 @@
|
|
* 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;
|
|
|
|
/*
|