Fix for Android

- No std::to_string. We have to implement it with a ostringstream
- No pthread_cancel. So we use pthread_kill to send a signal to the thread.
This commit is contained in:
Matthieu Gautier
2018-10-24 10:44:23 +02:00
parent 910ce5f10d
commit 34021994cd
5 changed files with 35 additions and 8 deletions

View File

@ -64,6 +64,12 @@ std::string lcFirst(const std::string& word);
std::string toTitle(const std::string& word);
std::string normalize(const std::string& word);
template<typename T>
std::string to_string(T value)
{
std::ostringstream oss;
oss << value;
return oss.str();
}
} //namespace kiwix
#endif