From ac911d8af7db73d9e83cf5e045becc2f0ac99dc7 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 8 Apr 2023 21:31:53 +0200 Subject: extra/firefox: fixed fdlibm patch --- extra/firefox/firefox-111.0.1-fdlibm.patch | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'extra/firefox/firefox-111.0.1-fdlibm.patch') diff --git a/extra/firefox/firefox-111.0.1-fdlibm.patch b/extra/firefox/firefox-111.0.1-fdlibm.patch index 4f600df4..f2c15a2b 100644 --- a/extra/firefox/firefox-111.0.1-fdlibm.patch +++ b/extra/firefox/firefox-111.0.1-fdlibm.patch @@ -1,18 +1,21 @@ diff -rauN firefox-111.0.1/modules/fdlibm/src/math_private.h firefox-111.0.1-fdlibm-patch/modules/fdlibm/src/math_private.h --- firefox-111.0.1/modules/fdlibm/src/math_private.h 2023-03-21 14:16:09.000000000 +0100 -+++ firefox-111.0.1-fdlibm-patch/modules/fdlibm/src/math_private.h 2023-04-07 15:42:21.149010898 +0200 -@@ -30,9 +30,13 @@ ++++ firefox-111.0.1-fdlibm-patch/modules/fdlibm/src/math_private.h 2023-04-08 16:50:07.828564320 +0200 +@@ -30,9 +30,17 @@ * 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; ++typedef long double __double_t; +#else typedef double __double_t; +#endif typedef __double_t double_t; --typedef float __float_t; -+/*typedef float __float_t;*/ ++#if defined __FLT_EVAL_METHOD__ && (__FLT_EVAL_METHOD__ == 2) ++typedef long double __float_t; ++#else + typedef float __float_t; ++#endif /* * The original fdlibm code used statements like: -- cgit v1.2.3-70-g09d2