1
0
Fork 0
forked from len0rd/rockbox

Make the SDL simulator a console app on cygwin, and circumvent SDL_main. Debug output finally appears on the console again.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11309 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-10-22 12:41:13 +00:00
parent 9f29086b2c
commit 43528c770e
2 changed files with 6 additions and 1 deletions

2
tools/configure vendored
View file

@ -111,7 +111,7 @@ simcc () {
elif [ "$simver" = "sdl" ]; then elif [ "$simver" = "sdl" ]; then
# sdl version # sdl version
GCCOPTS="$GCCOPTS `sdl-config --cflags`" GCCOPTS="$GCCOPTS `sdl-config --cflags`"
LDOPTS="`sdl-config --libs`" LDOPTS="`sdl-config --libs` -mconsole"
checksoundcard checksoundcard
else else
# x11 version # x11 version

View file

@ -187,6 +187,11 @@ int sim_app_main(void *param)
return 0; return 0;
} }
#if defined(WIN32) && defined(main)
/* Don't use SDL_main on windows -> no more stdio redirection */
#undef main
#endif
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
if (argc >= 1) { if (argc >= 1) {