Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/firefox/firefox-111.0.1-fdlibm.patch
blob: f2c15a2bb4e120fd1515db84ec0bc435cc435a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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-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;
+#else
 typedef double      __double_t;
+#endif
 typedef __double_t  double_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: