gtk: support build on soft-float PowerPC
authorDaniel Golle <[email protected]>
Thu, 12 Jun 2025 15:00:41 +0000 (17:00 +0200)
committerDaniel Golle <[email protected]>
Fri, 20 Jun 2025 13:04:15 +0000 (15:04 +0200)
Improve existing patch to also support build on soft-float PowerPC.

Fixes: #70
Signed-off-by: Daniel Golle <[email protected]>
frameworks/gtk/patches/001-gtkcssnumbervalue-Don-t-use-fesetround-on-softfloat.patch

index a4c6c51a210bfde34d58b1430fcbd7ce5d5d16ec..5e266ad04ee792e718b3462369331ae003e1fe14 100644 (file)
@@ -8,7 +8,7 @@ Implement nearbyint() the hard way when targeting an affected platform.
 
 Bug-Debian: https://bugs.debian.org/1079545
 Signed-off-by: Simon McVittie <[email protected]>
-[[email protected]: also handle MIPS soft-float]
+[[email protected]: also handle MIPS and PowerPC soft-float]
 Signed-off-by: Daniel Golle <[email protected]>
 ---
  gtk/gtkcssnumbervalue.c | 34 ++++++++++++++++++++++++++++++++++
@@ -20,7 +20,7 @@ Signed-off-by: Daniel Golle <[email protected]>
    return value->dimension.value == 0;
  }
  
-+#if (defined(__arm__) && !defined(__ARM_PCS_VFP)) || defined(__mips_soft_float)
++#if (defined(__arm__) && !defined(__ARM_PCS_VFP)) || defined(__mips_soft_float) || defined(_SOFT_FLOAT)
 +/* Floating-point emulated in software. Setting the rounding mode to
 + * anything other than FE_TONEAREST doesn't work */
 +#undef HAVE_WORKING_FESETROUND