Skip to content

Commit

Permalink
rename U64_MAX to UINT64_MAX due to libnx changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Myaats committed Apr 7, 2020
1 parent b01aabf commit 6f5f600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion audio/drivers/switch_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static ssize_t switch_audio_write(void *data, const void *buf, size_t size)
num = 0;

#ifdef HAVE_LIBNX
if (audoutWaitPlayFinish(&swa->current_buffer, &num, U64_MAX) != 0) { }
if (audoutWaitPlayFinish(&swa->current_buffer, &num, UINT64_MAX) != 0) { }
#else
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
svcResetSignal(swa->event);
Expand Down
2 changes: 1 addition & 1 deletion audio/drivers/switch_thread_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static void mainLoop(void* data)
if (!released_out_buffer)
{
#ifdef HAVE_LIBNX
rc = audoutWaitPlayFinish(&released_out_buffer, &released_out_count, U64_MAX);
rc = audoutWaitPlayFinish(&released_out_buffer, &released_out_count, UINT64_MAX);
#else
uint32_t handle_idx = 0;
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
Expand Down

0 comments on commit 6f5f600

Please sign in to comment.