diff --git a/include/wx/mac/setup0.h b/include/wx/mac/setup0.h index cb0d271e0c..a2db640a3c 100644 --- a/include/wx/mac/setup0.h +++ b/include/wx/mac/setup0.h @@ -121,7 +121,12 @@ // Default is 1 // // Recommended setting: 1 if your compiler supports it. -#define wxUSE_ON_FATAL_EXCEPTION 1 +#if defined(_MSC_VER) || \ + (defined(__BORLANDC__) && __BORLANDC__ >= 0x0550) + #define wxUSE_ON_FATAL_EXCEPTION 1 +#else + #define wxUSE_ON_FATAL_EXCEPTION 0 +#endif // Set this to 1 to be able to generate a human-readable (unlike // machine-readable minidumop created by wxCrashReport::Generate()) stack back diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index fd814ff1c9..ee73cbb7d6 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -120,7 +120,12 @@ // Default is 1 // // Recommended setting: 1 if your compiler supports it. -#define wxUSE_ON_FATAL_EXCEPTION 1 +#if defined(_MSC_VER) || \ + (defined(__BORLANDC__) && __BORLANDC__ >= 0x0550) + #define wxUSE_ON_FATAL_EXCEPTION 1 +#else + #define wxUSE_ON_FATAL_EXCEPTION 0 +#endif // Set this to 1 to be able to generate a human-readable (unlike // machine-readable minidumop created by wxCrashReport::Generate()) stack back diff --git a/include/wx/setup_inc.h b/include/wx/setup_inc.h index d05c40db5f..996845a9fb 100644 --- a/include/wx/setup_inc.h +++ b/include/wx/setup_inc.h @@ -105,7 +105,12 @@ // Default is 1 // // Recommended setting: 1 if your compiler supports it. -#define wxUSE_ON_FATAL_EXCEPTION 1 +#if defined(_MSC_VER) || \ + (defined(__BORLANDC__) && __BORLANDC__ >= 0x0550) + #define wxUSE_ON_FATAL_EXCEPTION 1 +#else + #define wxUSE_ON_FATAL_EXCEPTION 0 +#endif // Set this to 1 to be able to generate a human-readable (unlike // machine-readable minidumop created by wxCrashReport::Generate()) stack back