diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-02-19 09:05:23 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-02-19 09:05:23 +0000 |
commit | 9133322c4c39141a80f79f24755566128bb98c13 (patch) | |
tree | 79724d4f39d40013cb598f09ba64f2a897893cc7 /tests/main.cpp | |
parent | be7bdafa4504b0d54e7defbbf1d89c4fe7a935d4 (diff) |
tests: Minor fixes for WinCE compilation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@834 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/main.cpp')
-rw-r--r-- | tests/main.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
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 <exception> #include <stdio.h> +#include <stdlib.h> #include <float.h> #include <assert.h> +#ifdef _WIN32_WCE +# undef DebugBreak +# include <windows.h> +#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 <stdlib.h> - 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); |