https://github.com/python/cpython/commit/1b1b9b30218fc3bf92fd444d65f1a739b6c19bde
commit: 1b1b9b30218fc3bf92fd444d65f1a739b6c19bde
branch: main
author: thexai <[email protected]>
committer: chris-eibl <[email protected]>
date: 2026-09-11T12:16:27+02:00
summary:

gh-152433: Windows: allow build ``ceval.c`` for UWP (#152689)

files:
A Misc/NEWS.d/next/Windows/2026-07-04-20-12-24.gh-issue-152433.NtWEoL.rst
M Python/ceval.c

diff --git 
a/Misc/NEWS.d/next/Windows/2026-07-04-20-12-24.gh-issue-152433.NtWEoL.rst 
b/Misc/NEWS.d/next/Windows/2026-07-04-20-12-24.gh-issue-152433.NtWEoL.rst
new file mode 100644
index 000000000000000..91c8f3c3949df06
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2026-07-04-20-12-24.gh-issue-152433.NtWEoL.rst
@@ -0,0 +1 @@
+Allow build ``ceval.c`` for Windows UWP.
diff --git a/Python/ceval.c b/Python/ceval.c
index 3a859c05a037240..8cf02651d9a408f 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();

_______________________________________________
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