Merge pull request #57 from google/glslang-android

Fixes for compiling glslang on Android.
This commit is contained in:
John Kessenich 2015-08-17 10:27:11 -06:00
commit 156af43c25
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