https://github.com/python/cpython/commit/51b511d7299f91a458e40d1ea997bd7e6cd3deef
commit: 51b511d7299f91a458e40d1ea997bd7e6cd3deef
branch: main
author: thexai <[email protected]>
committer: zooba <[email protected]>
date: 2026-07-01T19:50:07+01:00
summary:

gh-152433 Allow faulthandler.c to build for Windows UWP (GH-152688)

files:
M Modules/faulthandler.c

diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index 3b0647152ceffe..21734d068270c5 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;

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to