adaa9fb33b4864efb94af75b059a4e1306eb3a84
[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(long t);
19     std::string to_string(uint32_t i);
20     std::string to_string(double d);
21 }
22 #endif
23
24 #endif
25
26 #endif