From 9133322c4c39141a80f79f24755566128bb98c13 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Sun, 19 Feb 2012 09:05:23 +0000 Subject: tests: Minor fixes for WinCE compilation git-svn-id: http://pugixml.googlecode.com/svn/trunk@834 99668b35-9821-0410-8761-19e4c4f06640 --- tests/main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tests/main.cpp') diff --git a/tests/main.cpp b/tests/main.cpp index 67fa190..21e9e6a 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -3,9 +3,15 @@ #include #include +#include #include #include +#ifdef _WIN32_WCE +# undef DebugBreak +# include +#endif + test_runner* test_runner::_tests = 0; size_t test_runner::_memory_fail_threshold = 0; jmp_buf test_runner::_failure_buffer; @@ -112,15 +118,17 @@ static bool run_test(test_runner* test) } #if defined(__CELLOS_LV2__) && defined(PUGIXML_NO_EXCEPTIONS) && !defined(__SNC__) -#include - void std::exception::_Raise() const { abort(); } #endif +#ifdef _WIN32_WCE +int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) +#else int main() +#endif { #ifdef __BORLANDC__ _control87(MCW_EM | PC_53, MCW_EM | MCW_PC); -- cgit v1.2.3