diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-04-28 23:03:52 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-04-28 23:03:52 +0000 |
commit | 38f70faf083338bf32369dfe509e3045e3ccd24a (patch) | |
tree | ca3173e5ae8b3f4cfe79816f58d08c135c41fca5 /src | |
parent | bcf473b324216e8622ea308974e0978dc97c83fc (diff) | |
download | build-38f70faf083338bf32369dfe509e3045e3ccd24a.tar.gz build-38f70faf083338bf32369dfe509e3045e3ccd24a.tar.bz2 build-38f70faf083338bf32369dfe509e3045e3ccd24a.tar.xz build-38f70faf083338bf32369dfe509e3045e3ccd24a.zip |
Same thing as libbu++, new version of gcc changed the rules a bit.
Diffstat (limited to '')
-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() |