From 317bf89ea0dd2d94d6744191bc701e883e52845c Mon Sep 17 00:00:00 2001 From: rexy712 Date: Tue, 29 Sep 2020 03:44:43 -0700 Subject: [PATCH] fix inclusion of alsa header in non GNU/Linux systems --- src/audio/init.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/audio/init.cpp b/src/audio/init.cpp index 894aef9..2cbeea7 100644 --- a/src/audio/init.cpp +++ b/src/audio/init.cpp @@ -22,12 +22,14 @@ #include #if defined(__gnu_linux__) - #ifdef OUR_DICK_ENABLE_DEBUG_VERBOSE_OUTPUT - #define ENABLE_ALSA_DEBUG + #ifndef OUR_DICK_ENABLE_DEBUG_VERBOSE_OUTPUT + #define DISABLE_ALSA_DEBUG #endif +#else + #define DISABLD_ALSA_DEBUG #endif -#ifndef ENABLE_ALSA_DEBUG +#ifdef DISABLE_ALSA_DEBUG #include //va_arg (missing include in alsa headers) #include //snd_lib_error_set_handler namespace sfx::detail{ @@ -38,7 +40,7 @@ namespace sfx::detail{ namespace sfx{ pa_system::pa_system(){ -#ifndef ENABLE_ALSA_DEBUG +#ifdef DISABLE_ALSA_DEBUG //silence excessive stderr warnings from alsa snd_lib_error_set_handler(detail::linux_alsa_error_handler); #endif