blob: 03b8eafb1c0c4b0f1b36cd3e1c3299307035fe93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
This is needed since we aren't glibc.
src/kdelibs4support-5.116.0/autotests/klocaletest.cpp:1205:6: error: "__WORDSIZE" is not defined, evaluates to 0 [-Werror=undef]
1205 | #if (__WORDSIZE == 64) || defined (_LP64) || defined(__LP64__) || defined(__ILP64__)
| ^~~~~~~~~~
--- kdelibs4support-5.116.0/autotests/klocaletest.cpp.old 2024-05-04 06:38:54.000000000 -0500
+++ kdelibs4support-5.116.0/autotests/klocaletest.cpp 2025-07-01 03:29:19.738313843 -0500
@@ -1202,7 +1202,7 @@
QCOMPARE(locale.formatByteSize(5000000), QString("4.8 MiB"));
QCOMPARE(locale.formatByteSize(50000000), QString("47.7 MiB"));
QCOMPARE(locale.formatByteSize(500000000), QString("476.8 MiB"));
-#if (__WORDSIZE == 64) || defined (_LP64) || defined(__LP64__) || defined(__ILP64__)
+#if (defined(__WORDSIZE) && (__WORDSIZE == 64)) || defined (_LP64) || defined(__LP64__) || defined(__ILP64__)
QCOMPARE(locale.formatByteSize(5000000000), QString("4.7 GiB"));
QCOMPARE(locale.formatByteSize(50000000000), QString("46.6 GiB"));
QCOMPARE(locale.formatByteSize(500000000000), QString("465.7 GiB"));
|