Skip to content

Commit 1399d0f

Browse files
committed
guard mp_type_native_gen_wrap declaration with MICROPY_EMIT_NATIVE
1 parent f9e99bd commit 1399d0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/obj.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ extern const mp_obj_type_t mp_type_zip;
736736
extern const mp_obj_type_t mp_type_array;
737737
extern const mp_obj_type_t mp_type_super;
738738
extern const mp_obj_type_t mp_type_gen_wrap;
739+
#if MICROPY_EMIT_NATIVE
739740
extern const mp_obj_type_t mp_type_native_gen_wrap;
741+
#endif
740742
extern const mp_obj_type_t mp_type_gen_instance;
741743
// CIRCUITPY
742744
#if MICROPY_PY_ASYNC_AWAIT

0 commit comments

Comments
 (0)