Mercurial > mplayer.hg
changeset 29180:be301983b535
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
author | diego |
---|---|
date | Thu, 23 Apr 2009 07:39:39 +0000 |
parents | dd89d439c911 |
children | 641ccdaad342 |
files | configure |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Apr 22 20:46:33 2009 +0000 +++ b/configure Thu Apr 23 07:39:39 2009 +0000 @@ -5083,7 +5083,7 @@ if test "$_sdl" = auto || test "$_sdl" = yes ; then cat > $TMPC << EOF #include <SDL.h> -int main(void) { +int main(int argc, char *argv[]) { SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); return 0; }