From c23a01e2600ec77f857bcfb3459a9138baea8aff Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 3 Jan 2010 11:33:33 +0000 Subject: Fixup SDL configure check: - Make it work without sdl-config which adds at least useless or even hurtful cflags and also does not work for cross-compiling - If using sdl-config, make it use the CFLAGS we actually use for compiling instead of something else. Thus #undef main is needed in the test program. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30178 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_sdl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libao2') diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index 329486b272..8df8c0ccf2 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -31,7 +31,11 @@ #include "audio_out.h" #include "audio_out_internal.h" #include "libaf/af_format.h" +#ifdef CONFIG_SDL_SDL_H +#include +#else #include +#endif #include "osdep/timer.h" #include "libavutil/fifo.h" -- cgit v1.2.3