Fixes for compiling glslang on Android.
Primarily fix is due to Android not supporting std::to_string().
This commit is contained in:
parent
f99b7dde08
commit
8b64fa5474
5 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue