Commit 6b66b817 by Catherine

Add WASI support in Abc_ThreadClock.

parent 9537f391
...@@ -353,7 +353,7 @@ static inline abctime Abc_ThreadClock() ...@@ -353,7 +353,7 @@ static inline abctime Abc_ThreadClock()
#else #else
#define APPLE_MACH 0 #define APPLE_MACH 0
#endif #endif
#if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__) #if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__) && !defined(__wasm)
struct timespec ts; struct timespec ts;
if ( clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) < 0 ) if ( clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) < 0 )
return (abctime)-1; return (abctime)-1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment