mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-29 06:22:39 +02:00
stratosphere: fix building with latest libnx
This commit is contained in:
parent
99ad059ff1
commit
07684b2c65
@ -118,7 +118,7 @@ namespace ams::os::impl {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
/* Continuously wait, until success. */
|
/* 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_CATCH(svc::ResultCancelled) { continue; }
|
||||||
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ namespace ams::os::impl {
|
|||||||
virtual Handle GetHandle() const = 0;
|
virtual Handle GetHandle() const = 0;
|
||||||
/* Gets the amount of time remaining until this wakes up. */
|
/* Gets the amount of time remaining until this wakes up. */
|
||||||
virtual u64 GetWakeupTime() const {
|
virtual u64 GetWakeupTime() const {
|
||||||
return U64_MAX;
|
return std::numeric_limits<u64>::max();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interface with manager. */
|
/* Interface with manager. */
|
||||||
|
@ -51,7 +51,7 @@ namespace ams::os::impl{
|
|||||||
WaitableHolderBase *objects[MaximumHandleCount];
|
WaitableHolderBase *objects[MaximumHandleCount];
|
||||||
|
|
||||||
const size_t count = this->BuildHandleArray(object_handles, objects);
|
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) {
|
while (true) {
|
||||||
this->current_time = armTicksToNs(armGetSystemTick());
|
this->current_time = armTicksToNs(armGetSystemTick());
|
||||||
|
@ -44,7 +44,7 @@ namespace ams::os::impl {
|
|||||||
public:
|
public:
|
||||||
/* Wait. */
|
/* Wait. */
|
||||||
WaitableHolderBase *WaitAny() {
|
WaitableHolderBase *WaitAny() {
|
||||||
return this->WaitAnyImpl(true, U64_MAX);
|
return this->WaitAnyImpl(true, std::numeric_limits<u64>::max());
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitableHolderBase *TryWaitAny() {
|
WaitableHolderBase *TryWaitAny() {
|
||||||
|
@ -49,7 +49,7 @@ namespace ams::os {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
/* Continuously wait, until success. */
|
/* Continuously wait, until success. */
|
||||||
R_TRY_CATCH(svcWaitSynchronizationSingle(this->handle.Get(), U64_MAX)) {
|
R_TRY_CATCH(svcWaitSynchronizationSingle(this->handle.Get(), std::numeric_limits<u64>::max())) {
|
||||||
R_CATCH(svc::ResultCancelled) { continue; }
|
R_CATCH(svc::ResultCancelled) { continue; }
|
||||||
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
||||||
|
|
||||||
|
@ -23,9 +23,9 @@ namespace ams::sf::hipc {
|
|||||||
s32 unused_index;
|
s32 unused_index;
|
||||||
if (message_buf == armGetTls()) {
|
if (message_buf == armGetTls()) {
|
||||||
/* Consider: AMS_ABORT_UNLESS(message_buf_size == TlsMessageBufferSize); */
|
/* Consider: AMS_ABORT_UNLESS(message_buf_size == TlsMessageBufferSize); */
|
||||||
return svcReplyAndReceive(&unused_index, &session_handle, 1, INVALID_HANDLE, U64_MAX);
|
return svcReplyAndReceive(&unused_index, &session_handle, 1, INVALID_HANDLE, std::numeric_limits<u64>::max());
|
||||||
} else {
|
} else {
|
||||||
return svcReplyAndReceiveWithUserBuffer(&unused_index, message_buf, message_buf_size, &session_handle, 1, INVALID_HANDLE, U64_MAX);
|
return svcReplyAndReceiveWithUserBuffer(&unused_index, message_buf, message_buf_size, &session_handle, 1, INVALID_HANDLE, std::numeric_limits<u64>::max());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user