From a70f6b1a70aa1c31cedd3659e070bc46a8722fc1 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 29 Oct 2009 21:47:37 +0000 Subject: tests: CodeWarrior and BCC supported git-svn-id: http://pugixml.googlecode.com/svn/trunk@195 99668b35-9821-0410-8761-19e4c4f06640 --- tests/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/main.cpp') diff --git a/tests/main.cpp b/tests/main.cpp index 07263a3..eb47401 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -3,6 +3,7 @@ #include #include +#include #include test_runner* test_runner::_tests = 0; @@ -47,7 +48,7 @@ static void replace_memory_management() pugi::set_memory_management_functions(custom_allocate, custom_deallocate); } -#if defined(_MSC_VER) && _MSC_VER > 1200 && _MSC_VER < 1400 && !defined(__INTEL_COMPILER) +#if defined(_MSC_VER) && _MSC_VER > 1200 && _MSC_VER < 1400 && !defined(__INTEL_COMPILER) && !defined(__DMC__) namespace std { _CRTIMP2 _Prhand _Raise_handler; @@ -103,6 +104,10 @@ static bool run_test(test_runner* test) int main() { +#ifdef __BORLANDC__ + _control87(MCW_EM | PC_53, MCW_EM | MCW_PC); +#endif + replace_memory_management(); unsigned int total = 0; -- cgit v1.2.3