Allow MSW Base be usable in other ports than wxMSW (ie. wxTVision in windows console). Adjustements for limited setup.h (as in wxTV) and minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1069,6 +1069,7 @@ void wxBell()
|
||||
|
||||
bool wxIsDebuggerRunning()
|
||||
{
|
||||
#if wxUSE_DYNLIB_CLASS
|
||||
// IsDebuggerPresent() is not available under Win95, so load it dynamically
|
||||
wxDynamicLibrary dll(_T("kernel32.dll"), wxDL_VERBATIM);
|
||||
|
||||
@@ -1080,6 +1081,9 @@ bool wxIsDebuggerRunning()
|
||||
}
|
||||
|
||||
return (*(IsDebuggerPresent_t)dll.GetSymbol(_T("IsDebuggerPresent")))() != 0;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user