From 38f70faf083338bf32369dfe509e3045e3ccd24a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 28 Apr 2008 23:03:52 +0000 Subject: Same thing as libbu++, new version of gcc changed the rules a bit. --- src/main.cpp | 6 ++++-- src/performcommand.cpp | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7e18743..77ee0c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,8 @@ #include "build.h" #include "action.h" +#include + class Param : public Bu::ParamProc { public: @@ -114,10 +116,10 @@ int main( int argc, char *argv[] ) { olddir = new char[4096]; getcwd( olddir, 4096 ); - chdir( prm.sDir.c_str() ); + chdir( prm.sDir.getStr() ); } - pBuild = bld.load( prm.sFile.c_str() ); + pBuild = bld.load( prm.sFile.getStr() ); pBuild->setCache( prm.sCache.getStr() ); pBuild->setView( prm.sView.getStr() ); if( prm.bCleanMode ) diff --git a/src/performcommand.cpp b/src/performcommand.cpp index 3f3aa32..65827c5 100644 --- a/src/performcommand.cpp +++ b/src/performcommand.cpp @@ -3,6 +3,8 @@ #include "build.h" #include "viewer.h" +#include + PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); PerformCommand::PerformCommand() -- cgit v1.2.3