build: fix usage of HAVE_SDL1 define

This is needed after fd1f8ed49.
This commit is contained in:
Stefano Pigozzi 2014-01-25 09:18:07 +01:00
parent fd1f8ed490
commit 3137a1a7b5
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ static const struct ao_driver * const audio_out_drivers[] = {
#if HAVE_OPENAL
&audio_out_openal,
#endif
#if HAVE_SDL || HAVE_SDL2
#if HAVE_SDL1 || HAVE_SDL2
&audio_out_sdl,
#endif
&audio_out_null,

View File

@ -2206,7 +2206,7 @@ if test "$_sdl2" = yes ; then
fi
if test "$_sdl2" = yes ; then
_sdl=yes # sdl2 implies sdl
def_sdl='#define HAVE_SDL 1'
def_sdl='#define HAVE_SDL1 1'
def_sdl2='#define HAVE_SDL2 1'
vomodules="sdl $vomodules"
aomodules="sdl $aomodules"
@ -2219,11 +2219,11 @@ else
pkg_config_add 'sdl' && _sdl=yes
fi
if test "$_sdl" = yes ; then
def_sdl='#define HAVE_SDL 1'
def_sdl='#define HAVE_SDL1 1'
novomodules="sdl $novomodules"
aomodules="sdl $aomodules"
else
def_sdl='#define HAVE_SDL 0'
def_sdl='#define HAVE_SDL1 0'
novomodules="sdl $novomodules"
noaomodules="sdl $noaomodules"
fi