forked from amazingfate/loongoffice
...as seen with recent GCC 11 trunk libstdc++:
> orcus_xlsx.cpp: In function ‘size_t orcus::{anonymous}::get_schema_rank(orcus::schema_t)’:
> orcus_xlsx.cpp:313:59: error: incomplete type ‘std::numeric_limits<long unsigned int>’ used in nested name specifier
> 313 | return it == rank_map.end() ? numeric_limits<size_t>::max() : it->second;
> | ^~~
etc.
Change-Id: If92cfb565ed9344b2ec1403793d7aeff8bd019ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104074
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
31 lines
637 B
Plaintext
31 lines
637 B
Plaintext
--- src/liborcus/orcus_xlsx.cpp
|
|
+++ src/liborcus/orcus_xlsx.cpp
|
|
@@ -32,6 +32,7 @@
|
|
|
|
#include <cstdlib>
|
|
#include <iostream>
|
|
+#include <limits>
|
|
#include <string>
|
|
#include <cstring>
|
|
#include <sstream>
|
|
--- src/liborcus/xls_xml_context.cpp
|
|
+++ src/liborcus/xls_xml_context.cpp
|
|
@@ -16,6 +16,7 @@
|
|
#include <mdds/sorted_string_map.hpp>
|
|
|
|
#include <iostream>
|
|
+#include <limits>
|
|
|
|
using namespace std;
|
|
namespace ss = orcus::spreadsheet;
|
|
--- src/liborcus/xlsx_revision_context.cpp
|
|
+++ src/liborcus/xlsx_revision_context.cpp
|
|
@@ -16,6 +16,7 @@
|
|
#include "orcus/global.hpp"
|
|
|
|
#include <iostream>
|
|
+#include <limits>
|
|
|
|
using namespace std;
|
|
|