reset webrogue-specific changes to upstream

This commit is contained in:
Artem Borovik 2024-08-30 20:40:07 +03:00
parent 3657948c1d
commit 64f3990e93
2 changed files with 2 additions and 6 deletions

View File

@ -44,11 +44,7 @@ if (${PLATFORM} MATCHES "Desktop")
set(OPENGL_LIBRARIES "GL")
endif ()
if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WASI")
set(LIBS_PRIVATE m atomic)
endif ()
set(LIBS_PRIVATE ${LIBS_PRIVATE} pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
set(LIBS_PRIVATE m atomic pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
if ("${CMAKE_SYSTEM_NAME}" MATCHES "(Net|Open)BSD")
find_library(OSS_LIBRARY ossaudio)

View File

@ -1696,7 +1696,7 @@ void WaitTime(double seconds)
#if defined(_WIN32)
Sleep((unsigned long)(sleepSeconds*1000.0));
#endif
#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__) || defined(__wasi__)
#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__)
struct timespec req = { 0 };
time_t sec = sleepSeconds;
long nsec = (sleepSeconds - sec)*1000000000L;