Skip to content

Commit

Permalink
Do not use _CrtDbgReport() if NO_CRTDBGREPORT macro defined (MSVC/debug)
Browse files Browse the repository at this point in the history
Issue #635 (bdwgc).

* misc.c [(MSWIN32 && !CONSOLE_LOG || MSWINCE) && _MSC_VER && _DEBUG
&& !NO_CRT && MSWINCE] (GC_write): Do not call MultiByteToWideChar()
and OutputDebugStringW() if NO_CRTDBGREPORT is defined.
* misc.c [(MSWIN32 && !CONSOLE_LOG || MSWINCE) && _MSC_VER && _DEBUG
&& !NO_CRT && !MSWINCE] (GC_write): Do not call _CrtDbgReport()
if NO_CRTDBGREPORT is defined.
  • Loading branch information
ivmai committed Apr 24, 2024
1 parent e5c7276 commit 2b30780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
{
Expand Down

0 comments on commit 2b30780

Please sign in to comment.