Fixes for compiling glslang on Android.

Primarily fix is due to Android not supporting std::to_string().
This commit is contained in:
Andrew Woloszyn 2015-08-17 11:39:38 -04:00
parent f99b7dde08
commit 8b64fa5474
5 changed files with 21 additions and 1 deletions

View file

@ -51,6 +51,17 @@
#define UINT_PTR uintptr_t
#endif
#ifdef __ANDROID__
#include <sstream>
namespace std {
template<typename T>
std::string to_string(const T& val) {
std::ostringstream os;
os << val;
return os.str();
}
}
#endif
/* windows only pragma */
#ifdef _MSC_VER
#pragma warning(disable : 4786) // Don't warn about too long identifiers