stratosphere: fix building with latest libnx
This commit is contained in:
@@ -118,7 +118,7 @@ namespace ams::os::impl {
|
||||
|
||||
while (true) {
|
||||
/* Continuously wait, until success. */
|
||||
R_TRY_CATCH(svcWaitSynchronizationSingle(handle, U64_MAX)) {
|
||||
R_TRY_CATCH(svcWaitSynchronizationSingle(handle, std::numeric_limits<u64>::max())) {
|
||||
R_CATCH(svc::ResultCancelled) { continue; }
|
||||
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace ams::os::impl {
|
||||
virtual Handle GetHandle() const = 0;
|
||||
/* Gets the amount of time remaining until this wakes up. */
|
||||
virtual u64 GetWakeupTime() const {
|
||||
return U64_MAX;
|
||||
return std::numeric_limits<u64>::max();
|
||||
}
|
||||
|
||||
/* Interface with manager. */
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace ams::os::impl{
|
||||
WaitableHolderBase *objects[MaximumHandleCount];
|
||||
|
||||
const size_t count = this->BuildHandleArray(object_handles, objects);
|
||||
const u64 end_time = infinite ? U64_MAX : armTicksToNs(armGetSystemTick());
|
||||
const u64 end_time = infinite ? std::numeric_limits<u64>::max() : armTicksToNs(armGetSystemTick());
|
||||
|
||||
while (true) {
|
||||
this->current_time = armTicksToNs(armGetSystemTick());
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace ams::os::impl {
|
||||
public:
|
||||
/* Wait. */
|
||||
WaitableHolderBase *WaitAny() {
|
||||
return this->WaitAnyImpl(true, U64_MAX);
|
||||
return this->WaitAnyImpl(true, std::numeric_limits<u64>::max());
|
||||
}
|
||||
|
||||
WaitableHolderBase *TryWaitAny() {
|
||||
|
||||
Reference in New Issue
Block a user