From ca75cb37c1d180565a4365ff48ce841f27c097a0 Mon Sep 17 00:00:00 2001 From: mcc Date: Fri, 30 Nov 2018 13:16:09 -0500 Subject: [PATCH] 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. --- src/lib/tinycthread/tinycthread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/tinycthread/tinycthread.h b/src/lib/tinycthread/tinycthread.h index 2fc7f628..c3a3b49e 100644 --- a/src/lib/tinycthread/tinycthread.h +++ b/src/lib/tinycthread/tinycthread.h @@ -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