From 52cb1190d0586169a6eacc156ecae75903ecf630 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 20 Mar 2004 22:39:30 +0000 Subject: [PATCH] Frederic Bouvier: This patch is for windows only. It hides the console window until there is a message to print. It only support SG_LOG, that I think is the right way to display something in FG. --- src/Main/bootstrap.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 6d711801b..cb14ba9a2 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -101,6 +101,15 @@ extern "C" { #endif +#ifdef _MSC_VER +int main ( int argc, char **argv ); +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, + LPSTR lpCmdLine, int nCmdShow) { + + main( __argc, __argv ); +} +#endif + // Main entry point; catch any exceptions that have made it this far. int main ( int argc, char **argv ) { -- 2.39.5