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:
Caleb Cornett
2023-01-11 10:43:59 -05:00
committed by Marge Bot
parent d575fe8881
commit 7588164717
6 changed files with 27 additions and 1 deletions
+2
View File
@@ -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 */