diff --git a/include/boost/core/detail/lwt_unattended.hpp b/include/boost/core/detail/lwt_unattended.hpp index b7b06e4..96fc5fc 100644 --- a/include/boost/core/detail/lwt_unattended.hpp +++ b/include/boost/core/detail/lwt_unattended.hpp @@ -35,9 +35,13 @@ inline void lwt_unattended() # pragma clang diagnostic ignored "-Wdeprecated-declarations" # endif +#if !defined(WINAPI_FAMILY) || WINAPI_FAMILY == 100 /*WINAPI_FAMILY_DESKTOP_APP*/ + // disable message box on crash ::_seterrormode( /*SEM_NOGPFAULTERRORBOX*/ 0x0002 ); +#endif + # if defined(__clang__) # pragma clang diagnostic pop # endif