From d6b2a50fba0e79c24a915d9f52a5d8c7578369a9 Mon Sep 17 00:00:00 2001 From: diego Date: Thu, 23 Apr 2009 07:39:39 +0000 Subject: [PATCH] Pass argc and argv parameters to main() function in SDL test. SDL renames the main function via a macro and later passes it parameters. This fixes the SDL check on at least Mac OS X, continues to work fine on Linux. patch by vmrsss vmrsss gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29221 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 27d27868cf..4622aa5e68 100755 --- a/configure +++ b/configure @@ -5083,7 +5083,7 @@ fi if test "$_sdl" = auto || test "$_sdl" = yes ; then cat > $TMPC << EOF #include -int main(void) { +int main(int argc, char *argv[]) { SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); return 0; }