summaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp12
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);