Skip to content

Commit 2b6aff0

Browse files
committed
gh-152433: Windows: allow build ceval.c for UWP
1 parent ecdef17 commit 2b6aff0

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow build ``ceval.c`` for Windows UWP.

Python/ceval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ hardware_stack_limits(uintptr_t *base, uintptr_t *top, uintptr_t sp)
131131
GetCurrentThreadStackLimits(&low, &high);
132132
*top = (uintptr_t)high;
133133
ULONG guarantee = 0;
134+
#ifdef MS_WINDOWS_DESKTOP
134135
SetThreadStackGuarantee(&guarantee);
136+
#endif
135137
*base = (uintptr_t)low + guarantee;
136138
#elif defined(__APPLE__)
137139
pthread_t this_thread = pthread_self();

0 commit comments

Comments
 (0)