[DEBUG] correct ios and MacOs compilation
This commit is contained in:
parent
44dd675eb8
commit
e6a829fd2a
@ -391,6 +391,13 @@ namespace etk {
|
|||||||
#endif
|
#endif
|
||||||
return tmpVal;
|
return tmpVal;
|
||||||
}
|
}
|
||||||
|
#if (defined(__TARGET_OS__IOs) || defined(__TARGET_OS__MacOs))
|
||||||
|
template<> std::string to_string<size_t>(const size_t& _val) {
|
||||||
|
char tmpVal[256];
|
||||||
|
sprintf(tmpVal, "%lu", _val);
|
||||||
|
return tmpVal;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
template<> std::string to_string<float>(const float& _val) {
|
template<> std::string to_string<float>(const float& _val) {
|
||||||
char tmpVal[256];
|
char tmpVal[256];
|
||||||
sprintf(tmpVal, "%f", _val);
|
sprintf(tmpVal, "%f", _val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user