util: Add #ifdefs for Xbox GDK support.
For the most part this just disables debug/console code, with the minor exception of u_memstream_open. Co-authored-by: Ethan Lee <flibitijibibo@gmail.com> Co-authored-by: David Jacewicz <david.jacewicz@protonmail.com> Co-authored-by: tieuchanlong <tieuchanlong@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19022>
This commit is contained in:
@@ -85,6 +85,7 @@ debug_disable_win32_error_dialogs(void)
|
||||
*/
|
||||
UINT uMode = SetErrorMode(0);
|
||||
SetErrorMode(uMode);
|
||||
#ifndef _GAMING_XBOX
|
||||
if (uMode & SEM_FAILCRITICALERRORS) {
|
||||
/* Disable assertion failure message box.
|
||||
* http://msdn.microsoft.com/en-us/library/sas1dkb2.aspx
|
||||
@@ -97,6 +98,7 @@ debug_disable_win32_error_dialogs(void)
|
||||
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
|
||||
#endif
|
||||
}
|
||||
#endif /* _GAMING_XBOX */
|
||||
}
|
||||
#endif /* _WIN32 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user