summaryrefslogtreecommitdiff
path: root/deps/uv/test/runner-win.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-10-10 02:17:32 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-10-10 02:17:32 +0200
commit5823290390ed8a65976778e055e35ac5e1d857f2 (patch)
tree7069789ce09af3e77e3645d5fdf2ac3dfa63627c /deps/uv/test/runner-win.c
parent0ad005852c7bd7e896c9c94ae5284493aa35cb83 (diff)
downloadandroid-node-v8-5823290390ed8a65976778e055e35ac5e1d857f2.tar.gz
android-node-v8-5823290390ed8a65976778e055e35ac5e1d857f2.tar.bz2
android-node-v8-5823290390ed8a65976778e055e35ac5e1d857f2.zip
deps: upgrade libuv to cb03e3b
Diffstat (limited to 'deps/uv/test/runner-win.c')
-rw-r--r--deps/uv/test/runner-win.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/uv/test/runner-win.c b/deps/uv/test/runner-win.c
index 111a6869d1..8f534bcdb7 100644
--- a/deps/uv/test/runner-win.c
+++ b/deps/uv/test/runner-win.c
@@ -24,7 +24,10 @@
#include <malloc.h>
#include <stdio.h>
#include <process.h>
-#include <crtdbg.h>
+#if !defined(__MINGW32__)
+# include <crtdbg.h>
+#endif
+
#include "task.h"
#include "runner.h"
@@ -44,8 +47,10 @@ void platform_init(int argc, char **argv) {
/* Disable the "application crashed" popup. */
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX |
SEM_NOOPENFILEERRORBOX);
+#if !defined(__MINGW32__)
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG);
+#endif
_setmode(0, _O_BINARY);
_setmode(1, _O_BINARY);