Add WASI support in Abc_ThreadClock.

This commit is contained in:
Catherine 2023-02-23 01:14:48 +00:00
parent 9537f391fd
commit 6b66b81722
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ static inline abctime Abc_ThreadClock()
#else
#define APPLE_MACH 0
#endif
#if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__)
#if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__) && !defined(__wasm)
struct timespec ts;
if ( clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) < 0 )
return (abctime)-1;