File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,13 @@ namespace ice::current_thread
88 void sleep (Tms ms) noexcept
99 {
1010#if ISP_WINDOWS
11- SleepEx (ms.value , 0 );
12- #elif ISP_LINUX
11+ ICE_ASSERT_CORE (ms.value <= ice::u32_max);
12+ SleepEx (DWORD (ms.value ), 0 );
13+ #elif ISP_UNIX
1314 Tus const us = ms;
1415 usleep (us.value );
16+ #else
17+ ICE_ASSERT_CORE (false );
1518#endif
1619 }
1720
Original file line number Diff line number Diff line change 11#pragma once
2+ #include < ice/base.hxx>
23#include < ice/clock_types.hxx>
34
45namespace ice ::current_thread
Original file line number Diff line number Diff line change 44#include < ice/config/config_builder.hxx>
55#include < ice/config.hxx>
66
7+ #if ISP_WINDOWS
8+ #undef GetObject
9+ #endif
10+
711ISC_WARNING_PUSH
812ISCW_OPERATOR_DEPRECATED_BETWEEN_UNRELATED_ENUMERATIONS (ISCW_OP_DISABLE)
913#include < rapidjson/document.h>
Original file line number Diff line number Diff line change 1818
1919#if ISP_WEBAPP
2020#include < emscripten.h>
21- #include " native_file.hxx"
2221#endif
2322
2423namespace ice ::native_file
You can’t perform that action at this time.
0 commit comments