Awkward hotfix to tinycthread.h

Becuase of https://github.com/tinycthread/tinycthread/issues/47 . Only needed on Android. Not needed in the glfw tinycthread because we don't use glfw on Android.
This commit is contained in:
mcc 2018-11-30 13:16:09 -05:00 committed by Bjorn Swenson
parent 783115c2cf
commit ca75cb37c1
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ extern "C" {
#define TTHREAD_NORETURN
#endif
/* HOTFIX: The TIME_UTC check below will spuriously succeed on Android NDK 18 or later, even on systems which lack timespec_get. */
#ifdef __ANDROID__
#undef TIME_UTC
#endif
/* If TIME_UTC is missing, provide it and provide a wrapper for
timespec_get. */
#ifndef TIME_UTC