diff --git a/include/wx/msw/debughlp.h b/include/wx/msw/debughlp.h index 64a5797008..3d94ee2168 100644 --- a/include/wx/msw/debughlp.h +++ b/include/wx/msw/debughlp.h @@ -22,7 +22,12 @@ // wxUSE_DBGHELP can be predefined as 0 to avoid the use of dbghelp.dll if this // is undesirable for some reason. #ifndef wxUSE_DBGHELP - #define wxUSE_DBGHELP 1 + // The only compiler which is known to have the necessary headers is MSVC. + #ifdef __VISUALC__ + #define wxUSE_DBGHELP 1 + #else + #define wxUSE_DBGHELP 0 + #endif #endif #if wxUSE_DBGHELP