Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / liborcus / android-workaround.patch
blobf9d047dc05590f263030646330c2dace66e14af4
1 diff --git a/src/parser/sax_parser_base.cpp b/src/parser/sax_parser_base.cpp
2 index 743130d..2624bd5 100644
3 --- a/src/parser/sax_parser_base.cpp
4 +++ b/src/parser/sax_parser_base.cpp
5 @@ -12,6 +12,17 @@
6 #include <vector>
7 #include <memory>
9 +#ifdef __ANDROID__
10 +namespace std
12 +int stoi(const std::string& str, std::size_t* /*pos*/ = 0, int base = 10)
14 + char* end;
15 + return strtol(str.c_str(), &end, base);
18 +#endif
20 namespace orcus { namespace sax {
22 malformed_xml_error::malformed_xml_error(const std::string& msg, std::ptrdiff_t offset) :