X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fapplication.cpp;h=36621e92ae99af9b74a2726263fd3b8176cbd020;hp=53fb1c3bc6ac6a49582d8aad1ad692414a8e963f;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hpb=bbdf8587c7b7efde9c843c2ebcecf27f0ba36b4b diff --git a/source/core/application.cpp b/source/core/application.cpp index 53fb1c3..36621e9 100644 --- a/source/core/application.cpp +++ b/source/core/application.cpp @@ -1,17 +1,5 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2006-2008, 2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifdef WIN32 -#include -#endif #include -#include -#include -#include "../debug/demangle.h" +#include #include "application.h" #include "getopt.h" @@ -40,14 +28,14 @@ int Application::run(int argc, char **argv, void *data) static bool called = false; if(called) { - cerr<<"Trying to call Application::run_app twice!\n"; + IO::cerr.write("Trying to call Application::run_app twice!\n"); return 125; } called = true; if(!starter_) { - cerr<<"Trying to run with no RegisteredApplication class!\n"; + IO::cerr.write("Trying to run with no RegisteredApplication class!\n"); return 126; } @@ -61,8 +49,7 @@ int Application::run(int argc, char **argv, void *data) } catch(const usage_error &e) { - cerr<