# HG changeset patch # User diego # Date 1240472379 0 # Node ID be301983b535936acc00fd9d6ef74e7e51194360 # Parent dd89d439c911f96015402d7e9141d53079ca03b3 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 diff -r dd89d439c911 -r be301983b535 configure --- 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 -int main(void) { +int main(int argc, char *argv[]) { SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); return 0; }