diff libvo/vo_sdl.c @ 30136:dc1d66a20ec2

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.
author reimar
date Sun, 03 Jan 2010 11:33:33 +0000
parents 0f1b5b68af32
children f3897eb85625
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Sun Jan 03 09:20:01 2010 +0000
+++ b/libvo/vo_sdl.c	Sun Jan 03 11:33:33 2010 +0000
@@ -90,7 +90,11 @@
 
 const LIBVO_EXTERN(sdl)
 
+#ifdef CONFIG_SDL_SDL_H
+#include <SDL/SDL.h>
+#else
 #include <SDL.h>
+#endif
 //#include <SDL/SDL_syswm.h>