From db43033f9ac251fccc1c070993299980f7a0412c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 15 Sep 2018 17:21:21 +0200 Subject: [PATCH] Some minor cleanups - switch_audio_compat.h --- audio/drivers/switch_audio_compat.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/audio/drivers/switch_audio_compat.h b/audio/drivers/switch_audio_compat.h index 976fa35250..bc65f72ed9 100644 --- a/audio/drivers/switch_audio_compat.h +++ b/audio/drivers/switch_audio_compat.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _SWITCH_AUDIO_COMPAT_H +#define _SWITCH_AUDIO_COMPAT_H #ifdef HAVE_LIBNX #include @@ -8,9 +9,9 @@ #ifdef HAVE_LIBNX -// libnx definitions +/* libnx definitions */ -// threading +/* threading */ typedef Mutex compat_mutex; typedef Thread compat_thread; typedef CondVar compat_condvar; @@ -36,7 +37,7 @@ typedef CondVar compat_condvar; #define compat_condvar_wake_all(condvar) \ condvarWakeAll(condvar) -// audio +/* audio */ typedef AudioOutBuffer compat_audio_out_buffer; #define switch_audio_ipc_init audoutInitialize #define switch_audio_ipc_finalize audoutExit @@ -47,12 +48,12 @@ typedef AudioOutBuffer compat_audio_out_buffer; #else -// libtransistor definitions +/* libtransistor definitions */ typedef result_t Result; #define R_FAILED(r) ((r) != RESULT_OK) -// threading +/* threading */ typedef trn_mutex_t compat_mutex; typedef trn_thread_t compat_thread; typedef trn_condvar_t compat_condvar; @@ -78,7 +79,7 @@ typedef trn_condvar_t compat_condvar; #define compat_condvar_wake_all(condvar) \ trn_condvar_signal(condvar, -1) -// audio +/* audio */ typedef audio_output_buffer_t compat_audio_out_buffer; #define switch_audio_ipc_init audio_ipc_init #define switch_audio_ipc_finalize audio_ipc_finalize @@ -88,3 +89,5 @@ typedef audio_output_buffer_t compat_audio_out_buffer; #define switch_audio_ipc_output_start(a) audio_ipc_output_start(&a->output) #endif + +#endif