From 62d3577508d0163ad272fc632b0e04ffe8b42d8b Mon Sep 17 00:00:00 2001 From: thexai <58434170+thexai@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:08:58 +0200 Subject: [PATCH] gh-152433: Windows: ``ceval.c`` allow build in UWP --- Python/ceval.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/ceval.c b/Python/ceval.c index fbea1f67a36f442..7cf1f975a983515 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -131,7 +131,9 @@ hardware_stack_limits(uintptr_t *base, uintptr_t *top, uintptr_t sp) GetCurrentThreadStackLimits(&low, &high); *top = (uintptr_t)high; ULONG guarantee = 0; +#ifdef MS_WINDOWS_DESKTOP SetThreadStackGuarantee(&guarantee); +#endif *base = (uintptr_t)low + guarantee; #elif defined(__APPLE__) pthread_t this_thread = pthread_self();