Skip to content

Commit 801f7dc

Browse files
committed
py/nativeglue.h: Rename "setjmp" entry to "setjmp_" to avoid any clash.
Because some compilers may define setjmp to something. Fixes issue micropython#6032.
1 parent 18fb5b4 commit 801f7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/nativeglue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ typedef struct _mp_fun_table_t {
135135
mp_int_t (*small_int_floor_divide)(mp_int_t num, mp_int_t denom);
136136
mp_int_t (*small_int_modulo)(mp_int_t dividend, mp_int_t divisor);
137137
bool (*yield_from)(mp_obj_t gen, mp_obj_t send_value, mp_obj_t *ret_value);
138-
void *setjmp;
138+
void *setjmp_;
139139
// Additional entries for dynamic runtime, starts at index 50
140140
void *(*memset_)(void *s, int c, size_t n);
141141
void *(*memmove_)(void *dest, const void *src, size_t n);

0 commit comments

Comments
 (0)