MinGW: unbreak the test harness.

_set_abort_behavior() is an MSVCRT function, not a Win32 one,
and it is not available in MinGW builds.
pull/33/merge
whitequark 2016-10-09 20:02:37 +00:00
parent d12bf047b4
commit 7787923d05
1 changed files with 3 additions and 1 deletions

View File

@ -271,8 +271,10 @@ int Test::Case::Register(Test::Case testCase) {
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {
#if defined(WIN32) #if defined(_MSC_VER)
_set_abort_behavior(0, _WRITE_ABORT_MSG); _set_abort_behavior(0, _WRITE_ABORT_MSG);
#endif
#if defined(WIN32)
InitHeaps(); InitHeaps();
#endif #endif