diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-31 17:07:30 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-31 17:07:30 +0200 |
commit | 6330590e7aeeeaccd305bfd23f00badb59a43d8f (patch) | |
tree | e4883b2768d51ec1f34c8a7dc13228746d7bd89c /desktop | |
parent | d16070a30d421098faedd51c4333d1d42163268f (diff) |
desktop: fix Android build
to_string() is missing in the std namespace on the broken Android
toolchain, work it around.
Change-Id: I77fd06f869291e04c265b6b6d38b2e60b0d48caf
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 9f32bcfd1edb..f4f46221f7b0 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -99,6 +99,19 @@ using namespace vcl; using namespace desktop; using namespace utl; +#if defined(ANDROID) +namespace std +{ +template<typename T> +std::string to_string(T x) +{ + std::ostringstream stream; + stream << x; + return stream.str(); +} +} +#endif + static LibLibreOffice_Impl *gImpl = nullptr; static std::weak_ptr< LibreOfficeKitClass > gOfficeClass; static std::weak_ptr< LibreOfficeKitDocumentClass > gDocumentClass; |