From d331278450912a8e38aab3c2ac54cdf6ba02ae28 Mon Sep 17 00:00:00 2001 From: Artem Borovik Date: Tue, 20 Aug 2024 00:43:10 +0300 Subject: [PATCH] WaitTime fix --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index 5485ce8ce..3f087e80f 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1689,7 +1689,7 @@ void WaitTime(double seconds) #if defined(_WIN32) Sleep((unsigned long)(sleepSeconds*1000.0)); #endif - #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__) + #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__) || defined(__wasi__) struct timespec req = { 0 }; time_t sec = sleepSeconds; long nsec = (sleepSeconds - sec)*1000000000L;