summaryrefslogtreecommitdiffstats
path: root/Source/cmcldeps.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-17 08:14:36 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-17 08:17:19 (GMT)
commit5ead31da6341eb5a410f9f5b7b65cd5dcd8f0eae (patch)
tree6ebb263cbe4cc205e185e138c73984bd8683854c /Source/cmcldeps.cxx
parent1333b576b56de852d826e886955d09de0f8c0ef6 (diff)
downloadCMake-5ead31da6341eb5a410f9f5b7b65cd5dcd8f0eae.zip
CMake-5ead31da6341eb5a410f9f5b7b65cd5dcd8f0eae.tar.gz
CMake-5ead31da6341eb5a410f9f5b7b65cd5dcd8f0eae.tar.bz2
Ninja: try work around for bcc32 bug
Diffstat (limited to 'Source/cmcldeps.cxx')
-rw-r--r--Source/cmcldeps.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index d8bb162..374ee10 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -32,6 +32,10 @@
#include <signal.h>
#endif
+
+// bcc32 only finds remove(const char*)
+namespace stlport { }
+
#if defined(_WIN64)
typedef unsigned __int64 cmULONG_PTR;
#else
@@ -429,8 +433,10 @@ bool SubprocessSet::DoWork() {
subproc->OnPipeReady();
if (subproc->Done()) {
+ using namespace std;
+ using namespace stlport;
std::vector<Subprocess*>::iterator end =
- std::remove(running_.begin(), running_.end(), subproc);
+ remove(running_.begin(), running_.end(), subproc);
if (running_.end() != end) {
finished_.push(subproc);
running_.resize(end - running_.begin());