diff --git a/misc.c b/misc.c index 52f6934cc..d3e204d6b 100644 --- a/misc.c +++ b/misc.c @@ -1754,7 +1754,8 @@ GC_API void GC_CALL GC_start_mark_threads(void) # endif } res = WriteFile(GC_log, buf, (DWORD)len, &written, NULL); -# if defined(_MSC_VER) && defined(_DEBUG) && !defined(NO_CRT) +# if defined(_MSC_VER) && defined(_DEBUG) && !defined(NO_CRT) \ + && !defined(NO_CRTDBGREPORT) # ifdef MSWINCE /* There is no CrtDbgReport() in WinCE */ {