File Fix-i586-float-math.patch of Package mozjs115

Index: firefox-115.1.0/modules/fdlibm/src/math_private.h
===================================================================
--- firefox-115.1.0.orig/modules/fdlibm/src/math_private.h
+++ firefox-115.1.0/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;
 typedef float       __float_t;
 
openSUSE Build Service is sponsored by