Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_ALSA

This commit is contained in:
Anonymous Maarten
2023-03-27 18:53:01 +02:00
parent c00601544b
commit 051a442381
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ static const AudioBootStrap *const bootstrap[] = {
#if SDL_AUDIO_DRIVER_PULSEAUDIO
&PULSEAUDIO_bootstrap,
#endif
#if SDL_AUDIO_DRIVER_ALSA
#ifdef SDL_AUDIO_DRIVER_ALSA
&ALSA_bootstrap,
#endif
#ifdef SDL_AUDIO_DRIVER_SNDIO

View File

@@ -20,7 +20,7 @@
*/
#include "SDL_internal.h"
#if SDL_AUDIO_DRIVER_ALSA
#ifdef SDL_AUDIO_DRIVER_ALSA
#ifndef SDL_ALSA_NON_BLOCKING
#define SDL_ALSA_NON_BLOCKING 0