diff --git a/tests/regex/regex.cpp b/tests/regex/regex.cpp index d2eb0d4056..27517c8f8a 100644 --- a/tests/regex/regex.cpp +++ b/tests/regex/regex.cpp @@ -45,6 +45,10 @@ #include "wx/cppunit.h" #include +#ifdef __DMC__ + #include +#endif + using namespace std; using namespace CppUnit; diff --git a/tests/test.cpp b/tests/test.cpp index 2ed6484993..040ed7eeda 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -157,10 +157,10 @@ void TestApp::List(Test *test, const string& parent /*=""*/) const cout << " " << name.substr(i + 1) << "\n"; } - typedef const vector Tests; + typedef vector Tests; typedef Tests::const_iterator Iter; - Tests& tests = suite->getTests(); + const Tests& tests = suite->getTests(); for (Iter it = tests.begin(); it != tests.end(); ++it) List(*it, name);