comparison configure @ 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 36f71dfbd668
children cb11a0c11f5e
comparison
equal deleted inserted replaced
29179:dd89d439c911 29180:be301983b535
5081 fi 5081 fi
5082 fi 5082 fi
5083 if test "$_sdl" = auto || test "$_sdl" = yes ; then 5083 if test "$_sdl" = auto || test "$_sdl" = yes ; then
5084 cat > $TMPC << EOF 5084 cat > $TMPC << EOF
5085 #include <SDL.h> 5085 #include <SDL.h>
5086 int main(void) { 5086 int main(int argc, char *argv[]) {
5087 SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); 5087 SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE);
5088 return 0; 5088 return 0;
5089 } 5089 }
5090 EOF 5090 EOF
5091 _sdl=no 5091 _sdl=no