Skip to content

Commit

Permalink
Awkward hotfix to tinycthread.h
Browse files Browse the repository at this point in the history
Becuase of tinycthread/tinycthread#47 . Only needed on Android. Not needed in the glfw tinycthread because we don't use glfw on Android.
  • Loading branch information
mcclure committed Nov 30, 2018
1 parent 783115c commit c322ce2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/tinycthread/tinycthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c322ce2

Please sign in to comment.