diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 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 ) |