78af522313fd0ed56d4c551b11e0805cec5a826e
[platform/upstream/iotivity.git] / build_common / android / compatibility / android_cpp11_compat.h
1 #ifndef _ANDRDIO_STRING_H_
2 #define _ANDRDIO_STRING_H_
3
4 #ifdef __ANDROID__
5 #include <string>
6
7 #ifndef ANDROID_C11_COMPAT
8 using std::to_string;
9 #else
10 namespace std {
11     int stoi(const std::string& s);
12     double stod(const std::string& s);
13     long long stoll(const std::string& s);
14     unsigned long long stoull(const std::string& s);
15     long double stold(const string& s);
16
17     std::string to_string(int i);
18     std::string to_string(uint32_t i);
19     std::string to_string(double d);
20 }
21 #endif
22
23 #endif
24
25 #endif