File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ bool COINUTILSLIB_EXPORT CoinError::printErrors_ = false;
88
99/* * A function to block the popup windows that windows creates when the code
1010 crashes */
11- #ifdef HAVE_WINDOWS_H
11+ #ifdef _MSC_VER
1212#include < windows.h>
13+ #include < stdlib.h>
1314COINUTILSLIB_EXPORT
1415void WindowsErrorPopupBlocker ()
1516{
1617 SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
18+ _set_abort_behavior (0 , _WRITE_ABORT_MSG);
1719}
1820#else
1921COINUTILSLIB_EXPORT
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ void testingMessage( const char * const msg );
5252
5353int main (int argc, const char *argv[])
5454{
55+ // Stop Windows popup
56+ WindowsErrorPopupBlocker ();
57+
5558 /*
5659 Set default location for Data directory, assuming traditional
5760 package layout.
You can’t perform that action at this time.
0 commit comments