Skip to content

Commit 51b511d

Browse files
authored
gh-152433 Allow faulthandler.c to build for Windows UWP (GH-152688)
1 parent df2538a commit 51b511d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/faulthandler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ faulthandler_enable(void)
581581
handler->enabled = 1;
582582
}
583583

584-
#ifdef MS_WINDOWS
584+
#ifdef MS_WINDOWS_DESKTOP
585585
assert(fatal_error.exc_handler == NULL);
586586
fatal_error.exc_handler = AddVectoredExceptionHandler(1, faulthandler_exc_handler);
587587
#endif
@@ -645,7 +645,7 @@ faulthandler_disable(void)
645645
faulthandler_disable_fatal_handler(handler);
646646
}
647647
}
648-
#ifdef MS_WINDOWS
648+
#ifdef MS_WINDOWS_DESKTOP
649649
if (fatal_error.exc_handler != NULL) {
650650
RemoveVectoredExceptionHandler(fatal_error.exc_handler);
651651
fatal_error.exc_handler = NULL;

0 commit comments

Comments
 (0)