- \r
-// if (g_bRunningWXWindows)\r
-// theApp->getLog() << strOutput.c_str();\r
-// else\r
- std::cout << strOutput;\r
+
+#ifdef HAVE_WXWINDOWS
+ if (g_bRunningWXWindows)
+ *theApp->getLog() << strOutput.c_str();
+ else
+#endif
+ std::cout << strOutput;