From 51b511d7299f91a458e40d1ea997bd7e6cd3deef Mon Sep 17 00:00:00 2001 From: thexai <58434170+thexai@users.noreply.github.com> Date: Wed, 1 Jul 2026 20:50:07 +0200 Subject: [PATCH] gh-152433 Allow faulthandler.c to build for Windows UWP (GH-152688) --- Modules/faulthandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 3b0647152cef..21734d068270 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -581,7 +581,7 @@ faulthandler_enable(void) handler->enabled = 1; } -#ifdef MS_WINDOWS +#ifdef MS_WINDOWS_DESKTOP assert(fatal_error.exc_handler == NULL); fatal_error.exc_handler = AddVectoredExceptionHandler(1, faulthandler_exc_handler); #endif @@ -645,7 +645,7 @@ faulthandler_disable(void) faulthandler_disable_fatal_handler(handler); } } -#ifdef MS_WINDOWS +#ifdef MS_WINDOWS_DESKTOP if (fatal_error.exc_handler != NULL) { RemoveVectoredExceptionHandler(fatal_error.exc_handler); fatal_error.exc_handler = NULL; -- 2.47.3