mirror of
https://github.com/boostorg/core.git
synced 2025-05-11 13:13:55 +00:00
Disable call to ::_seterrormode when WINAPI_FAMILY is defined to something other than WINAPI_FAMILY_DESKTOP_APP. Refs #143.
This commit is contained in:
parent
39978bde2b
commit
5904fb5636
@ -35,9 +35,13 @@ inline void lwt_unattended()
|
|||||||
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#if !defined(WINAPI_FAMILY) || WINAPI_FAMILY == 100 /*WINAPI_FAMILY_DESKTOP_APP*/
|
||||||
|
|
||||||
// disable message box on crash
|
// disable message box on crash
|
||||||
::_seterrormode( /*SEM_NOGPFAULTERRORBOX*/ 0x0002 );
|
::_seterrormode( /*SEM_NOGPFAULTERRORBOX*/ 0x0002 );
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
# if defined(__clang__)
|
# if defined(__clang__)
|
||||||
# pragma clang diagnostic pop
|
# pragma clang diagnostic pop
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user