Skip to content

Commit 1d76b48

Browse files
committed
Only define helper if needed
1 parent 28ea776 commit 1d76b48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/internal/pycore_ceval.h

+2
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,11 @@ extern void _PyEval_DeactivateOpCache(void);
193193

194194
/* --- _Py_EnterRecursiveCall() ----------------------------------------- */
195195

196+
#if !_Py__has_builtin(__builtin_frame_address)
196197
static uintptr_t return_pointer_as_int(char* p) {
197198
return (uintptr_t)p;
198199
}
200+
#endif
199201

200202
static inline uintptr_t
201203
_Py_get_machine_stack_pointer(void) {

0 commit comments

Comments
 (0)