mcst-linux-kernel/patches-2024.06.26/boost-1.83.0/0008-work-around-incomplete...

28 lines
1.1 KiB
Diff

Subject: work around "incomplete type is not allowed" error
Bug: 152289
Tags: lcc
diff -rupN a/boost/json/detail/charconv/detail/fast_float/bigint.hpp b/boost/json/detail/charconv/detail/fast_float/bigint.hpp
--- a/boost/json/detail/charconv/detail/fast_float/bigint.hpp 2023-11-17 16:39:32.928968507 +0300
+++ b/boost/json/detail/charconv/detail/fast_float/bigint.hpp 2023-11-17 16:42:48.231266954 +0300
@@ -388,11 +388,19 @@ struct pow5_tables {
298023223876953125UL, 1490116119384765625UL, 7450580596923828125UL,
};
#ifdef BOOST_JSON_FASTFLOAT_64BIT_LIMB
+#ifdef __LCC__
+ constexpr static limb large_power_of_5[5] = {
+#else
constexpr static limb large_power_of_5[] = {
+#endif //LCC
1414648277510068013UL, 9180637584431281687UL, 4539964771860779200UL,
10482974169319127550UL, 198276706040285095UL};
#else
+#ifdef __LCC__
+ constexpr static limb large_power_of_5[10] = {
+#else
constexpr static limb large_power_of_5[] = {
+#endif //LCC
4279965485U, 329373468U, 4020270615U, 2137533757U, 4287402176U,
1057042919U, 1071430142U, 2440757623U, 381945767U, 46164893U};
#endif