diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 6 | ||||
-rw-r--r-- | 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 @@ | |||
7 | #include "build.h" | 7 | #include "build.h" |
8 | #include "action.h" | 8 | #include "action.h" |
9 | 9 | ||
10 | #include <stdlib.h> | ||
11 | |||
10 | class Param : public Bu::ParamProc | 12 | class Param : public Bu::ParamProc |
11 | { | 13 | { |
12 | public: | 14 | public: |
@@ -114,10 +116,10 @@ int main( int argc, char *argv[] ) | |||
114 | { | 116 | { |
115 | olddir = new char[4096]; | 117 | olddir = new char[4096]; |
116 | getcwd( olddir, 4096 ); | 118 | getcwd( olddir, 4096 ); |
117 | chdir( prm.sDir.c_str() ); | 119 | chdir( prm.sDir.getStr() ); |
118 | } | 120 | } |
119 | 121 | ||
120 | pBuild = bld.load( prm.sFile.c_str() ); | 122 | pBuild = bld.load( prm.sFile.getStr() ); |
121 | pBuild->setCache( prm.sCache.getStr() ); | 123 | pBuild->setCache( prm.sCache.getStr() ); |
122 | pBuild->setView( prm.sView.getStr() ); | 124 | pBuild->setView( prm.sView.getStr() ); |
123 | if( prm.bCleanMode ) | 125 | 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 @@ | |||
3 | #include "build.h" | 3 | #include "build.h" |
4 | #include "viewer.h" | 4 | #include "viewer.h" |
5 | 5 | ||
6 | #include <stdlib.h> | ||
7 | |||
6 | PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); | 8 | PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); |
7 | 9 | ||
8 | PerformCommand::PerformCommand() | 10 | PerformCommand::PerformCommand() |