diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 59176bc70..3f894ed5b 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -1125,6 +1125,7 @@ std::vector split(const std::string &s, char delim) return vec; } +#if __cplusplus <= 201103L std::string to_string(int i) { std::stringstream s; @@ -1166,6 +1167,7 @@ std::string to_string(unsigned long long i) s << i; return s.str(); } +#endif /** * C++ version 0.4 std::string style "itoa": diff --git a/src/system/helpers.h b/src/system/helpers.h index e9b860d04..0011c72eb 100644 --- a/src/system/helpers.h +++ b/src/system/helpers.h @@ -117,12 +117,17 @@ class CFileHelpers uint32_t GetWidth4FB_HW_ACC(const uint32_t _x, const uint32_t _w, const bool max=true); +#if __cplusplus <= 201103L std::string to_string(int); std::string to_string(unsigned int); std::string to_string(long); std::string to_string(unsigned long); std::string to_string(long long); std::string to_string(unsigned long long); +#else +/* hack... */ +#define to_string(x) std::to_string(x) +#endif std::string itoa(int value, int base);