summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-10-22 12:41:13 +0000
committerJens Arnold <amiconn@rockbox.org>2006-10-22 12:41:13 +0000
commit43528c770e32556223a99d3e92a551434395dde5 (patch)
tree31afc59cadd48db24bc99fd45a6cdf0547fa4f3e /uisimulator
parent9f29086b2c0ef5cccd85cf53aa6fa7ee501b8dc7 (diff)
downloadrockbox-43528c770e32556223a99d3e92a551434395dde5.tar.gz
rockbox-43528c770e32556223a99d3e92a551434395dde5.tar.bz2
rockbox-43528c770e32556223a99d3e92a551434395dde5.zip
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
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/uisdl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/uisimulator/sdl/uisdl.c b/uisimulator/sdl/uisdl.c
index 8c9d216f10..d298167df1 100644
--- a/uisimulator/sdl/uisdl.c
+++ b/uisimulator/sdl/uisdl.c
@@ -187,6 +187,11 @@ int sim_app_main(void *param)
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[])
{
if (argc >= 1) {