fix MrEd -h, etc. reporting under Mac OS X

svn: r14931
This commit is contained in:
Matthew Flatt 2009-05-22 19:18:07 +00:00
parent 611f1d1efd
commit f496a353db
2 changed files with 6 additions and 1 deletions

View File

@ -3152,6 +3152,11 @@ wxFrame *MrEdApp::OnInit(void)
# endif
#endif
#ifdef OS_X
/* Hack to make sure it's referenced, so that xform doesn't throw it away. */
wx_in_terminal = wx_in_terminal;
#endif
mred_run_from_cmd_line(argc, argv, setup_basic_env);
#if WCONSOLE_STDIO

View File

@ -198,7 +198,7 @@ MRED_EXTERN void mred_set_run_from_cmd_line(MrEd_Run_From_Cmd_Line_Proc);
#endif
#ifndef REDIRECT_STDIO
# if (defined(wx_msw) || defined(wx_mac)) && !WCONSOLE_STDIO
# if defined(wx_msw) && !WCONSOLE_STDIO
# define REDIRECT_STDIO 1
# else
# define REDIRECT_STDIO 0