summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/sound.c')
-rw-r--r--src/osd/sdl/sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/sdl/sound.c b/src/osd/sdl/sound.c
index f468bb68997..fdc67df1b13 100644
--- a/src/osd/sdl/sound.c
+++ b/src/osd/sdl/sound.c
@@ -10,7 +10,7 @@
//============================================================
// standard sdl header
-#include <SDL/SDL.h>
+#include "sdlinc.h"
// MAME headers
#include "emu.h"
@@ -432,7 +432,7 @@ static int sdl_init(running_machine &machine)
}
mame_printf_verbose("Audio: Start initialization\n");
-#if (SDL_VERSION_ATLEAST(1,3,0))
+#if (SDLMAME_SDL2)
strncpy(audio_driver, SDL_GetCurrentAudioDriver(), sizeof(audio_driver));
#else
SDL_AudioDriverName(audio_driver, sizeof(audio_driver));