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

@ -62,6 +62,9 @@ void DetachThreadLinux(void *)
//
void OS_CleanupThreadData(void)
{
#ifdef __ANDROID__
DetachThread();
#else
int old_cancel_state, old_cancel_type;
void *cleanupArg = NULL;
@ -85,6 +88,7 @@ void OS_CleanupThreadData(void)
// Restore the thread's previous cancellation mode.
//
pthread_setcanceltype(old_cancel_state, NULL);
#endif
}