Ver Fonte

update mpstate.h

SummerGift há 8 anos atrás
pai
commit
e02b4d0e53
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      py/mpstate.h

+ 7 - 0
py/mpstate.h

@@ -176,6 +176,13 @@ typedef struct _mp_state_vm_t {
     mp_obj_t lwip_slip_stream;
     mp_obj_t lwip_slip_stream;
     #endif
     #endif
 
 
+    #if !MICROPY_VFS  //If not difined MICROPY_VFS,only define MICROPY_MODUOS_FILE
+    #if MICROPY_MODUOS_FILE
+    struct _mp_vfs_mount_t *vfs_cur;
+    struct _mp_vfs_mount_t *vfs_mount_table;
+    #endif
+    #endif
+
     #if MICROPY_VFS
     #if MICROPY_VFS
     struct _mp_vfs_mount_t *vfs_cur;
     struct _mp_vfs_mount_t *vfs_cur;
     struct _mp_vfs_mount_t *vfs_mount_table;
     struct _mp_vfs_mount_t *vfs_mount_table;