diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-01-30 23:44:56 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-01-30 23:44:56 -0600 |
commit | 90dc8905f7dbd3d0290232b378539d29e96ee49b (patch) | |
tree | 949c53e73d3556160a37a110b107e95d6d53ddaf /user/thunderbird/pmmx-double-format.patch | |
parent | e3548657c0c3da4a584c011e77a9f86a35cf57b3 (diff) | |
download | packages-90dc8905f7dbd3d0290232b378539d29e96ee49b.tar.gz packages-90dc8905f7dbd3d0290232b378539d29e96ee49b.tar.bz2 packages-90dc8905f7dbd3d0290232b378539d29e96ee49b.tar.xz packages-90dc8905f7dbd3d0290232b378539d29e96ee49b.zip |
user/{mozilla}: Fix double format on pmmx
This fixes the definition of the double format on our pmmx builds in the
vendored copy of fdlibm.
Fixes: #958
Diffstat (limited to 'user/thunderbird/pmmx-double-format.patch')
-rw-r--r-- | user/thunderbird/pmmx-double-format.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/user/thunderbird/pmmx-double-format.patch b/user/thunderbird/pmmx-double-format.patch new file mode 100644 index 000000000..4b2289fab --- /dev/null +++ b/user/thunderbird/pmmx-double-format.patch @@ -0,0 +1,16 @@ +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; + + /* |